From 0ef6e192cbe748a817fac38e3301d185a0153351 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 28 Jan 2024 21:34:17 +0000 Subject: [PATCH] Coding Standards: Use strict type check for `in_array()` in `get_hooked_block_markup()`. This aims to prevent type juggling causing incorrect results. Follow-up to [57157]. Props jrf. See #60279. Built from https://develop.svn.wordpress.org/trunk@57372 git-svn-id: http://core.svn.wordpress.org/trunk@56878 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index dcb899c9e5..b7b806fd47 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -784,7 +784,7 @@ function get_hooked_block_markup( $hooked_block, $hooked_block_type, &$anchor_bl $anchor_block['attrs']['metadata']['ignoredHookedBlocks'] = array(); } - if ( in_array( $hooked_block_type, $anchor_block['attrs']['metadata']['ignoredHookedBlocks'] ) ) { + if ( in_array( $hooked_block_type, $anchor_block['attrs']['metadata']['ignoredHookedBlocks'], true ) ) { return ''; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 13b39b9135..c2a8bae0aa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57371'; +$wp_version = '6.5-alpha-57372'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.