mirror of
git://develop.git.wordpress.org/
synced 2025-04-07 13:43:25 +02:00
Coding Standards: Use strict type check for in_array()
in register_block_script_handle()
.
Follow-up to [51501]. Props aristath, sergeybiryukov. Fixes #54206. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51888 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f2d146d3f1
commit
374adaafe6
@ -116,7 +116,7 @@ function register_block_script_handle( $metadata, $field_name ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! empty( $metadata['textdomain'] ) && in_array( 'wp-i18n', $script_dependencies ) ) {
|
||||
if ( ! empty( $metadata['textdomain'] ) && in_array( 'wp-i18n', $script_dependencies, true ) ) {
|
||||
wp_set_script_translations( $script_handle, $metadata['textdomain'] );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user