wp core update 6.6
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user