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
This commit is contained in:
ryan 2010-06-04 15:16:17 +00:00
parent 5a4c8048f7
commit 78bc6f2877
1 changed files with 2 additions and 0 deletions

View File

@ -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 )