mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 23:57:41 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@47871 git-svn-id: http://core.svn.wordpress.org/trunk@47646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5f47ca5b8b
commit
f7da44c8d2
@ -31,7 +31,7 @@ class WP_Fatal_Error_Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do not trigger the fatal error handler while updates are being installed.
|
// Do not trigger the fatal error handler while updates are being installed.
|
||||||
if ( wp_in_maintenance_mode() ) {
|
if ( wp_is_maintenance_mode() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ function wp_favicon_request() {
|
|||||||
*/
|
*/
|
||||||
function wp_maintenance() {
|
function wp_maintenance() {
|
||||||
// Return if maintenance mode is disabled.
|
// Return if maintenance mode is disabled.
|
||||||
if ( ! wp_in_maintenance_mode() ) {
|
if ( ! wp_is_maintenance_mode() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ function wp_maintenance() {
|
|||||||
*
|
*
|
||||||
* @return bool True if maintenance mode is enabled, false otherwise.
|
* @return bool True if maintenance mode is enabled, false otherwise.
|
||||||
*/
|
*/
|
||||||
function wp_in_maintenance_mode() {
|
function wp_is_maintenance_mode() {
|
||||||
global $upgrading;
|
global $upgrading;
|
||||||
|
|
||||||
if ( ! file_exists( ABSPATH . '.maintenance' ) || wp_installing() ) {
|
if ( ! file_exists( ABSPATH . '.maintenance' ) || wp_installing() ) {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-alpha-47870';
|
$wp_version = '5.5-alpha-47871';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user