WordPress.org

Make WordPress Core

Changeset 47871


Ignore:
Timestamp:
05/30/2020 03:11:02 PM (18 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-fatal-error-handler.php

    r47768 r47871  
    3232
    3333        // Do not trigger the fatal error handler while updates are being installed.
    34         if ( wp_in_maintenance_mode() ) {
     34        if ( wp_is_maintenance_mode() ) {
    3535            return;
    3636        }
  • trunk/src/wp-includes/load.php

    r47808 r47871  
    155155function wp_maintenance() {
    156156    // Return if maintenance mode is disabled.
    157     if ( ! wp_in_maintenance_mode() ) {
     157    if ( ! wp_is_maintenance_mode() ) {
    158158        return;
    159159    }
     
    190190 * @return bool True if maintenance mode is enabled, false otherwise.
    191191 */
    192 function wp_in_maintenance_mode() {
     192function wp_is_maintenance_mode() {
    193193    global $upgrading;
    194194
Note: See TracChangeset for help on using the changeset viewer.