Changeset 47550 for trunk/src/wp-admin/includes/schema.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r47280 r47550 401 401 if ( is_numeric( $offset_or_tz ) ) { 402 402 $gmt_offset = $offset_or_tz; 403 } elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list() ) ) {403 } elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list(), true ) ) { 404 404 $timezone_string = $offset_or_tz; 405 405 } … … 564 564 565 565 $insert = ''; 566 566 567 foreach ( $options as $option => $value ) { 567 if ( in_array( $option, $existing_options ) ) {568 if ( in_array( $option, $existing_options, true ) ) { 568 569 continue; 569 570 } 570 if ( in_array( $option, $fat_options ) ) { 571 572 if ( in_array( $option, $fat_options, true ) ) { 571 573 $autoload = 'no'; 572 574 } else { … … 577 579 $value = serialize( $value ); 578 580 } 581 579 582 if ( ! empty( $insert ) ) { 580 583 $insert .= ', '; 581 584 } 585 582 586 $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload ); 583 587 }
Note: See TracChangeset
for help on using the changeset viewer.