Changeset 25048 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 08/17/2013 05:35:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r24474 r25048 488 488 $this->skin->bulk_header(); 489 489 490 // Only start maintenance mode if running in Multisite OR the plugin is in use 491 $maintenance = is_multisite(); // @TODO: This should only kick in for individual sites if at all possible. 490 // Only start maintenance mode if: 491 // - running Multisite and there are one or more plugins specified, OR 492 // - a plugin with an update available is currently active. 493 // @TODO: For multisite, maintenance mode should only kick in for individual sites if at all possible. 494 $maintenance = ( is_multisite() && ! empty( $plugins ) ); 492 495 foreach ( $plugins as $plugin ) 493 $maintenance = $maintenance || ( is_plugin_active($plugin) && isset($current->response[ $plugin ]) ); // Only activate Maintenance mode if a plugin is active AND has an update available496 $maintenance = $maintenance || ( is_plugin_active( $plugin ) && isset( $current->response[ $plugin] ) ); 494 497 if ( $maintenance ) 495 498 $this->maintenance_mode(true); … … 849 852 $this->skin->bulk_header(); 850 853 851 // Only start maintenance mode if running in Multisite OR the theme is in use 852 $maintenance = is_multisite(); // @TODO: This should only kick in for individual sites if at all possible. 854 // Only start maintenance mode if: 855 // - running Multisite and there are one or more themes specified, OR 856 // - a theme with an update available is currently in use. 857 // @TODO: For multisite, maintenance mode should only kick in for individual sites if at all possible. 858 $maintenance = ( is_multisite() && ! empty( $themes ) ); 853 859 foreach ( $themes as $theme ) 854 860 $maintenance = $maintenance || $theme == get_stylesheet() || $theme == get_template();
Note: See TracChangeset
for help on using the changeset viewer.