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:
parent
b58a019e87
commit
baa954e82e
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user