Changeset 47550 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r47397 r47550 207 207 208 208 // Correct a situation where the theme is 'some-directory/some-theme' but 'some-directory' was passed in as part of the theme root instead. 209 if ( ! in_array( $theme_root, (array) $wp_theme_directories ) && in_array( dirname( $theme_root ), (array) $wp_theme_directories ) ) { 209 if ( ! in_array( $theme_root, (array) $wp_theme_directories, true ) 210 && in_array( dirname( $theme_root ), (array) $wp_theme_directories, true ) 211 ) { 210 212 $this->stylesheet = basename( $this->theme_root ) . '/' . $this->stylesheet; 211 213 $this->theme_root = dirname( $theme_root ); … … 476 478 ); 477 479 478 return in_array( $offset, $properties );480 return in_array( $offset, $properties, true ); 479 481 } 480 482 … … 575 577 ); 576 578 577 return in_array( $offset, $keys );579 return in_array( $offset, $keys, true ); 578 580 } 579 581 … … 662 664 */ 663 665 public function exists() { 664 return ! ( $this->errors() && in_array( 'theme_not_found', $this->errors()->get_error_codes() ) );666 return ! ( $this->errors() && in_array( 'theme_not_found', $this->errors()->get_error_codes(), true ) ); 665 667 } 666 668 … … 1030 1032 */ 1031 1033 public function get_stylesheet_directory() { 1032 if ( $this->errors() && in_array( 'theme_root_missing', $this->errors()->get_error_codes() ) ) {1034 if ( $this->errors() && in_array( 'theme_root_missing', $this->errors()->get_error_codes(), true ) ) { 1033 1035 return ''; 1034 1036 }
Note: See TracChangeset
for help on using the changeset viewer.