summaryrefslogtreecommitdiffstats
path: root/wp-includes/load.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/load.php
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream.tar.xz
wordpress-upstream.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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.
*