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:
parent
5a4c8048f7
commit
78bc6f2877
|
@ -142,6 +142,8 @@ function wp_maintenance() {
|
||||||
if ( !file_exists( ABSPATH . '.maintenance' ) || defined( 'WP_INSTALLING' ) )
|
if ( !file_exists( ABSPATH . '.maintenance' ) || defined( 'WP_INSTALLING' ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
global $upgrading;
|
||||||
|
|
||||||
include( ABSPATH . '.maintenance' );
|
include( ABSPATH . '.maintenance' );
|
||||||
// If the $upgrading timestamp is older than 10 minutes, don't die.
|
// If the $upgrading timestamp is older than 10 minutes, don't die.
|
||||||
if ( ( time() - $upgrading ) >= 600 )
|
if ( ( time() - $upgrading ) >= 600 )
|
||||||
|
|
Loading…
Reference in New Issue