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
This commit is contained in:
Sergey Biryukov 2024-01-28 21:34:17 +00:00
parent 16832e24b8
commit 0ef6e192cb
2 changed files with 2 additions and 2 deletions

View File

@ -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 '';
}

View File

@ -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.