Skip to content

Commit

Permalink
(WP 6.4-compat) Add missing type schema attribute in WP 6.4 compat'…
Browse files Browse the repository at this point in the history
…s `block-hooks.php` (#55138)

* Add missing `type` attribute in WP 6.4 compat's `block-hooks.php`
* Type is required for API schemas
  • Loading branch information
fullofcaffeine authored and noahtallen committed Oct 10, 2023
1 parent f810926 commit b21ecf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compat/wordpress-6.4/block-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function gutenberg_register_block_hooks_rest_field() {
array(
'schema' => array(
'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' ),
'type' => 'object',
'patternProperties' => array(
'^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$' => array(
'type' => 'string',
Expand Down

0 comments on commit b21ecf7

Please sign in to comment.