Skip to content

Commit

Permalink
Limit most used blocks to 6 elements (#22521)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored May 25, 2020
1 parent 1530b55 commit 861b3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const createBlocksFromInnerBlocksTemplate = ( innerBlocksTemplate ) => {

const getBlockNamespace = ( item ) => item.name.split( '/' )[ 0 ];

const MAX_SUGGESTED_ITEMS = 9;
const MAX_SUGGESTED_ITEMS = 6;

export function InserterBlockList( {
rootClientId,
Expand Down
4 changes: 1 addition & 3 deletions packages/block-library/src/nextpage/block.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"name": "core/nextpage",
"category": "layout",
"parent": [
"core/post-content"
],
"parent": [ "core/post-content" ],
"supports": {
"customClassName": false,
"className": false,
Expand Down

0 comments on commit 861b3a0

Please sign in to comment.