From 78bc6f2877380059bf404cab3e8054242b4ea9b0 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 4 Jun 2010 15:16:17 +0000 Subject: [PATCH] Make upgrading global so maintenance_nag() can see it. see #13721 git-svn-id: http://svn.automattic.com/wordpress/trunk@15139 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/load.php b/wp-includes/load.php index b3120c897..429f69f89 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 )