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 authored Sep 6, 2023
1 parent 7924ef1 commit 3198337
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

1 comment on commit 3198337

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 3198337.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6095980108
📝 Reported issues:

Please sign in to comment.