mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 03:04:27 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@57372 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user