WordPress.org

Make WordPress Core

Ticket #35066: 35066.diff

File 35066.diff, 867 bytes (added by chacha102, 4 years ago)
  • wp-includes/load.php

    diff --git wp-includes/load.php wp-includes/load.php
    index 9d247ba..e15a766 100644
    function wp_favicon_request() { 
    174174 * @global int $upgrading the unix timestamp marking when upgrading WordPress began.
    175175 */
    176176function wp_maintenance() {
    177         if ( ! file_exists( ABSPATH . '.maintenance' ) || wp_installing() )
     177        if ( ( ! file_exists( ABSPATH . 'wordpress.maintenance' ) && ! file_exists( ABSPATH . '.maintenance' ) ) || wp_installing() )
    178178                return;
    179179
    180180        global $upgrading;
     181        if ( file_exists( ABSPATH . 'wordpress.maintenance' ) ) {
     182                include ( ABSPATH . 'wordpress.maintenance' );
     183        } else {
     184                include ( ABSPATH . '.maintenance' );
     185        }
    181186
    182         include( ABSPATH . '.maintenance' );
    183187        // If the $upgrading timestamp is older than 10 minutes, don't die.
    184188        if ( ( time() - $upgrading ) >= 600 )
    185189                return;