Ticket #31130: 31130.4.diff
| File 31130.4.diff, 1.4 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/load.php
165 165 * @global int $upgrading the unix timestamp marking when upgrading WordPress began. 166 166 */ 167 167 function wp_maintenance() { 168 if ( ! file_exists( ABSPATH . '.maintenance' ) || wp_installing() )168 if ( ! file_exists( ABSPATH . '.maintenance' ) || defined( 'WP_INSTALLING' ) ) 169 169 return; 170 170 171 171 global $upgrading; … … 475 475 */ 476 476 function wp_not_installed() { 477 477 if ( is_multisite() ) { 478 if ( ! is_blog_installed() && ! wp_installing() ) {478 if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) { 479 479 nocache_headers(); 480 480 481 481 wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) ); 482 482 } 483 } elseif ( ! is_blog_installed() && ! wp_installing() ) {483 } elseif ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) { 484 484 nocache_headers(); 485 485 486 486 require( ABSPATH . WPINC . '/kses.php' ); … … 539 539 function wp_get_active_and_valid_plugins() { 540 540 $plugins = array(); 541 541 $active_plugins = (array) get_option( 'active_plugins', array() ); 542 if ( empty( $active_plugins ) || wp_installing() )542 if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) ) 543 543 return $plugins; 544 544 545 545 $network_plugins = is_multisite() ? wp_get_active_network_plugins() : false;