From 4ae8bdf8c39515138ad468c3362a845a66c89435 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 30 May 2020 15:11:02 +0000 Subject: [PATCH] Upgrade/Install: Rename `wp_in_maintenance_mode()` to `wp_is_maintenance_mode()`, for consistency with `wp_is_recovery_mode()`. While the former name might be a bit more accurate, the latter matches the existing naming pattern. Follow-up to [47623]. Fixes #49959. git-svn-id: https://develop.svn.wordpress.org/trunk@47871 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-fatal-error-handler.php | 2 +- src/wp-includes/load.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-fatal-error-handler.php b/src/wp-includes/class-wp-fatal-error-handler.php index a461281bec..fce925a456 100644 --- a/src/wp-includes/class-wp-fatal-error-handler.php +++ b/src/wp-includes/class-wp-fatal-error-handler.php @@ -31,7 +31,7 @@ class WP_Fatal_Error_Handler { } // Do not trigger the fatal error handler while updates are being installed. - if ( wp_in_maintenance_mode() ) { + if ( wp_is_maintenance_mode() ) { return; } diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index 51fe392a20..70b2188c4b 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -154,7 +154,7 @@ function wp_favicon_request() { */ function wp_maintenance() { // Return if maintenance mode is disabled. - if ( ! wp_in_maintenance_mode() ) { + if ( ! wp_is_maintenance_mode() ) { return; } @@ -189,7 +189,7 @@ function wp_maintenance() { * * @return bool True if maintenance mode is enabled, false otherwise. */ -function wp_in_maintenance_mode() { +function wp_is_maintenance_mode() { global $upgrading; if ( ! file_exists( ABSPATH . '.maintenance' ) || wp_installing() ) {