mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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:
parent
16832e24b8
commit
0ef6e192cb
@ -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 '';
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user