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.
Built from https://develop.svn.wordpress.org/trunk@51888


git-svn-id: http://core.svn.wordpress.org/trunk@51481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
hellofromTonya 2021-10-05 16:53:00 +00:00
parent 3c16cc2cfb
commit a64837dfde
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-51887';
$wp_version = '5.9-alpha-51888';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.