Skip to content

Commit

Permalink
Add 'reusable' keyword to Pattern blocks (#52543)
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks authored and tellthemachines committed Jul 13, 2023
1 parent ca85f26 commit 605f510
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ export const getInserterItems = createSelector(
title: reusableBlock.title.raw,
icon,
category: 'reusable',
keywords: [],
keywords: [ 'reusable' ],
isDisabled: false,
utility: 1, // Deprecated.
frecency,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/test/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -3351,7 +3351,7 @@ describe( 'selectors', () => {
id: 'core/block/1',
initialAttributes: { ref: 1 },
isDisabled: false,
keywords: [],
keywords: [ 'reusable' ],
name: 'core/block',
syncStatus: undefined,
title: 'Reusable Block 1',
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/block/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"title": "Pattern",
"category": "reusable",
"description": "Create and save content to reuse across your site. Update the pattern, and the changes apply everywhere it’s used.",
"keywords": [ "reusable" ],
"textdomain": "default",
"attributes": {
"ref": {
Expand Down

0 comments on commit 605f510

Please sign in to comment.