Skip to content

Commit

Permalink
Documentation: Document the keywords block property
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Aug 1, 2017
1 parent d64cac2 commit 4da242a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ editor interface where blocks are implemented.
- `save( { attributes: Object } ): WPElement | String` - Returns an element
describing the markup of a block to be saved in the published content. This
function is called before save and when switching to an editor's HTML view.
- `keywords` - An optional array of keywords used to filter the block list.

### `wp.blocks.getBlockType( name: string )`

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/verse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ registerBlockType( 'core/verse', {

category: 'formatting',

keywords: [ 'poetry' ],
keywords: [ __( 'poetry' ) ],

attributes: {
content: children( 'pre' ),
Expand Down

0 comments on commit 4da242a

Please sign in to comment.