Skip to content

Commit

Permalink
Auto-inserting blocks: Remove obsolete TODO, fix REST API field descr…
Browse files Browse the repository at this point in the history
…iption (#54208)

* Remove now-obsolete TODO note.
* Fix REST API schema description.
  • Loading branch information
ockham committed Sep 6, 2023
1 parent 4e40bc6 commit 012a6b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/experimental/auto-inserting-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function gutenberg_register_auto_insert_rest_field() {
'auto_insert',
array(
'schema' => array(
'description' => __( 'Block types that may be automatically inserted near this block and the associated relative position where they are inserted.', 'gutenberg' ),
'description' => __( 'This block is automatically inserted near any occurence of the block types used as keys of this map, into a relative position given by the corresponding value.', 'gutenberg' ),
'patternProperties' => array(
'^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$' => array(
'type' => 'string',
Expand Down
3 changes: 0 additions & 3 deletions packages/block-editor/src/hooks/auto-inserting-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ function AutoInsertingBlocksControl( props ) {
<h3>{ vendor }</h3>
{ groupedAutoInsertedBlocks[ vendor ].map(
( block ) => {
// TODO: Display block icon.
// <BlockIcon icon={ block.icon } />

const checked =
block.name in
autoInsertedBlockClientIds;
Expand Down

0 comments on commit 012a6b3

Please sign in to comment.