Make upgrading global so maintenance_nag() can see it. see #13721

git-svn-id: https://develop.svn.wordpress.org/trunk@15139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-06-04 15:16:17 +00:00
parent b58a019e87
commit baa954e82e
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 )