Changeset 47550 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 04/05/2020 03:00:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r47451 r47550 866 866 867 867 foreach ( $modes as $i => $mode ) { 868 if ( in_array( $mode, $incompatible_modes ) ) {868 if ( in_array( $mode, $incompatible_modes, true ) ) { 869 869 unset( $modes[ $i ] ); 870 870 } … … 1040 1040 $global_tables = array_merge( $this->global_tables, $this->ms_global_tables ); 1041 1041 foreach ( $tables as $k => $table ) { 1042 if ( in_array( $table, $global_tables ) ) {1042 if ( in_array( $table, $global_tables, true ) ) { 1043 1043 $tables[ $table ] = $base_prefix . $table; 1044 1044 } else { … … 2210 2210 $this->insert_id = 0; 2211 2211 2212 if ( ! in_array( strtoupper( $type ), array( 'REPLACE', 'INSERT' ) ) ) {2212 if ( ! in_array( strtoupper( $type ), array( 'REPLACE', 'INSERT' ), true ) ) { 2213 2213 return false; 2214 2214 } … … 2744 2744 2745 2745 // A binary/blob means the whole query gets treated like this. 2746 if ( in_array( strtoupper( $type ), array( 'BINARY', 'VARBINARY', 'TINYBLOB', 'MEDIUMBLOB', 'BLOB', 'LONGBLOB' ) ) ) {2746 if ( in_array( strtoupper( $type ), array( 'BINARY', 'VARBINARY', 'TINYBLOB', 'MEDIUMBLOB', 'BLOB', 'LONGBLOB' ), true ) ) { 2747 2747 $this->table_charset[ $tablekey ] = 'binary'; 2748 2748 return 'binary';
Note: See TracChangeset
for help on using the changeset viewer.