Changeset 47409 for trunk/src/wp-admin/includes/class-theme-upgrader.php
- Timestamp:
- 03/03/2020 12:27:52 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-upgrader.php
r47219 r47409 529 529 * @since 2.8.0 530 530 * 531 * @param bool|WP_Error $return532 * @param array $theme533 * @return bool|WP_Error 531 * @param bool|WP_Error $return Upgrade offer return. 532 * @param array $theme Theme arguments. 533 * @return bool|WP_Error The passed in $return param or WP_Error. 534 534 */ 535 535 public function current_before( $return, $theme ) { … … 540 540 $theme = isset( $theme['theme'] ) ? $theme['theme'] : ''; 541 541 542 if ( get_stylesheet() !== $theme ) { // If not current. 542 // Only run if current theme 543 if ( get_stylesheet() !== $theme ) { 543 544 return $return; 544 545 } 545 546 546 // Change to maintenance mode now.547 // Change to maintenance mode. Bulk edit handles this separately. 547 548 if ( ! $this->bulk ) { 548 549 $this->maintenance_mode( true ); … … 560 561 * @since 2.8.0 561 562 * 562 * @param bool|WP_Error $return563 * @param array $theme564 * @return bool|WP_Error 563 * @param bool|WP_Error $return Upgrade offer return. 564 * @param array $theme Theme arguments. 565 * @return bool|WP_Error The passed in $return param or WP_Error. 565 566 */ 566 567 public function current_after( $return, $theme ) { … … 571 572 $theme = isset( $theme['theme'] ) ? $theme['theme'] : ''; 572 573 573 if ( get_stylesheet() !== $theme ) { // If not current. 574 // Only run if current theme 575 if ( get_stylesheet() !== $theme ) { 574 576 return $return; 575 577 } … … 582 584 } 583 585 584 // Time to remove maintenance mode. 586 // Time to remove maintenance mode. Bulk edit handles this separately. 585 587 if ( ! $this->bulk ) { 586 588 $this->maintenance_mode( false );
Note: See TracChangeset
for help on using the changeset viewer.