From de91474b4e917079f3d2b48c8aaf58205bb46eea Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 27 Nov 2023 20:20:24 +0000 Subject: [PATCH] Docs: Correct the documented type for the `block_hooks` argument when registering a block type. This argument is an associative array of strings, not an array of arrays. See #59313, 59651 Built from https://develop.svn.wordpress.org/trunk@57140 git-svn-id: http://core.svn.wordpress.org/trunk@56651 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-block-type.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-block-type.php b/wp-includes/class-wp-block-type.php index b783a80c4b..9caa366032 100644 --- a/wp-includes/class-wp-block-type.php +++ b/wp-includes/class-wp-block-type.php @@ -181,7 +181,7 @@ class WP_Block_Type { * next to the "anchor" block whenever the latter is encountered. * * @since 6.4.0 - * @var array[] + * @var string[] */ public $block_hooks = array(); @@ -299,7 +299,7 @@ class WP_Block_Type { * @type array|null $attributes Block type attributes property schemas. * @type string[] $uses_context Context values inherited by blocks of this type. * @type string[]|null $provides_context Context provided by blocks of this type. - * @type array[] $block_hooks Block hooks. + * @type string[] $block_hooks Block hooks. * @type string[] $editor_script_handles Block type editor only script handles. * @type string[] $script_handles Block type front end and editor script handles. * @type string[] $view_script_handles Block type front end only script handles. diff --git a/wp-includes/version.php b/wp-includes/version.php index 6c9840fc71..69afb849fa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57139'; +$wp_version = '6.5-alpha-57140'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.