Changeset 55908
- Timestamp:
- 06/13/2023 04:44:40 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-list-util.php
r55423 r55908 117 117 if ( is_array( $obj ) ) { 118 118 // Treat object as an array. 119 if ( array_key_exists( $m_key, $obj ) && ( $m_value == $obj[ $m_key ] ) ) {119 if ( array_key_exists( $m_key, $obj ) && ( $m_value === $obj[ $m_key ] ) ) { 120 120 $matched++; 121 121 } 122 122 } elseif ( is_object( $obj ) ) { 123 123 // Treat object as an object. 124 if ( isset( $obj->{$m_key} ) && ( $m_value == $obj->{$m_key} ) ) {124 if ( isset( $obj->{$m_key} ) && ( $m_value === $obj->{$m_key} ) ) { 125 125 $matched++; 126 126 } … … 277 277 } 278 278 279 if ( $a[ $field ] == $b[ $field ] ) {279 if ( $a[ $field ] === $b[ $field ] ) { 280 280 continue; 281 281 }
Note: See TracChangeset
for help on using the changeset viewer.