mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00: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:
@@ -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'] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user