diff --git a/wp-includes/load.php b/wp-includes/load.php index b3120c8978..429f69f890 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -142,6 +142,8 @@ function wp_maintenance() { if ( !file_exists( ABSPATH . '.maintenance' ) || defined( 'WP_INSTALLING' ) ) return; + global $upgrading; + include( ABSPATH . '.maintenance' ); // If the $upgrading timestamp is older than 10 minutes, don't die. if ( ( time() - $upgrading ) >= 600 )