summaryrefslogtreecommitdiffstats
path: root/wp-includes/load.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/load.php')
-rw-r--r--wp-includes/load.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/wp-includes/load.php b/wp-includes/load.php
index b7bde14..6b743d4 100644
--- a/wp-includes/load.php
+++ b/wp-includes/load.php
@@ -420,6 +420,16 @@ function wp_is_maintenance_mode() {
return false;
}
+ // Don't enable maintenance mode while scraping for fatal errors.
+ if ( is_int( $upgrading ) && isset( $_REQUEST['wp_scrape_key'], $_REQUEST['wp_scrape_nonce'] ) ) {
+ $key = stripslashes( $_REQUEST['wp_scrape_key'] );
+ $nonce = stripslashes( $_REQUEST['wp_scrape_nonce'] );
+
+ if ( md5( $upgrading ) === $key && (int) $nonce === $upgrading ) {
+ return false;
+ }
+ }
+
/**
* Filters whether to enable maintenance mode.
*