Changeset 47219 for trunk/src/wp-admin/includes/class-theme-upgrader.php
- Timestamp:
- 02/09/2020 04:52:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-upgrader.php
r47122 r47219 368 368 $maintenance = ( is_multisite() && ! empty( $themes ) ); 369 369 foreach ( $themes as $theme ) { 370 $maintenance = $maintenance || $theme == get_stylesheet() || $theme == get_template();370 $maintenance = $maintenance || get_stylesheet() === $theme || get_template() === $theme; 371 371 } 372 372 if ( $maintenance ) { … … 540 540 $theme = isset( $theme['theme'] ) ? $theme['theme'] : ''; 541 541 542 if ( $theme != get_stylesheet()) { // If not current.542 if ( get_stylesheet() !== $theme ) { // If not current. 543 543 return $return; 544 544 } … … 571 571 $theme = isset( $theme['theme'] ) ? $theme['theme'] : ''; 572 572 573 if ( $theme != get_stylesheet()) { // If not current.573 if ( get_stylesheet() !== $theme ) { // If not current. 574 574 return $return; 575 575 } 576 576 577 577 // Ensure stylesheet name hasn't changed after the upgrade: 578 if ( $theme == get_stylesheet()&& $theme != $this->result['destination_name'] ) {578 if ( get_stylesheet() === $theme && $theme != $this->result['destination_name'] ) { 579 579 wp_clean_themes_cache(); 580 580 $stylesheet = $this->result['destination_name'];
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)