From a64837dfdea2176506f942a6331886028a015957 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Tue, 5 Oct 2021 16:53:00 +0000 Subject: [PATCH] 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 --- wp-includes/blocks.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index c94a5d5e5e..a7919090cf 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -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'] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6ba3669969..98c94d6878 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.