From 72c7d06179da806e2a9b3255694792d81b1e90d6 Mon Sep 17 00:00:00 2001 From: Marcelo Serpa <81248+fullofcaffeine@users.noreply.github.com> Date: Fri, 6 Oct 2023 16:41:46 -0600 Subject: [PATCH] (WP 6.4-compat) Add missing `type` schema attribute in WP 6.4 compat's `block-hooks.php` (#55138) * Add missing `type` attribute in WP 6.4 compat's `block-hooks.php` * Type is required for API schemas --- lib/compat/wordpress-6.4/block-hooks.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compat/wordpress-6.4/block-hooks.php b/lib/compat/wordpress-6.4/block-hooks.php index 07f5aaf218d67a..9cf6d2414926a5 100644 --- a/lib/compat/wordpress-6.4/block-hooks.php +++ b/lib/compat/wordpress-6.4/block-hooks.php @@ -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',