Coding Standards: Use strict comparison in wp-includes/class-wp-list-util.php.

Follow-up to [18606], [38928], [48413].

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.
Built from https://develop.svn.wordpress.org/trunk@55908


git-svn-id: http://core.svn.wordpress.org/trunk@55420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-06-13 04:46:23 +00:00
parent a56a09c4ba
commit e2f7452084
2 changed files with 4 additions and 4 deletions

View File

@ -116,12 +116,12 @@ class WP_List_Util {
foreach ( $args as $m_key => $m_value ) {
if ( is_array( $obj ) ) {
// Treat object as an array.
if ( array_key_exists( $m_key, $obj ) && ( $m_value == $obj[ $m_key ] ) ) {
if ( array_key_exists( $m_key, $obj ) && ( $m_value === $obj[ $m_key ] ) ) {
$matched++;
}
} elseif ( is_object( $obj ) ) {
// Treat object as an object.
if ( isset( $obj->{$m_key} ) && ( $m_value == $obj->{$m_key} ) ) {
if ( isset( $obj->{$m_key} ) && ( $m_value === $obj->{$m_key} ) ) {
$matched++;
}
}
@ -276,7 +276,7 @@ class WP_List_Util {
continue;
}
if ( $a[ $field ] == $b[ $field ] ) {
if ( $a[ $field ] === $b[ $field ] ) {
continue;
}

View File

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