Make WordPress Core

Ticket #45974: 45974.diff

File 45974.diff, 1.3 KB (added by spacedmonkey, 6 years ago)
  • src/wp-includes/load.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    213213                require_once( WP_CONTENT_DIR . '/maintenance.php' );
    214214                die();
    215215        }
    216 
     216       
     217        require_once( ABSPATH . WPINC . '/functions.php' );
    217218        wp_load_translations_early();
    218219
    219         $protocol = wp_get_server_protocol();
    220         header( "$protocol 503 Service Unavailable", true, 503 );
    221         header( 'Content-Type: text/html; charset=utf-8' );
    222220        header( 'Retry-After: 600' );
    223221
    224         $dir_attr = '';
    225         if ( is_rtl() ) {
    226                 $dir_attr = ' dir="rtl"';
    227         }
    228         ?>
    229         <!DOCTYPE html>
    230         <html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir_attr; ?>>
    231         <head>
    232         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    233                 <title><?php _e( 'Maintenance' ); ?></title>
     222        $title   = __( 'Maintenance' );
     223        $message = __( 'Briefly unavailable for scheduled maintenance. Check back in a minute.' );
    234224
    235         </head>
    236         <body>
    237                 <h1><?php _e( 'Briefly unavailable for scheduled maintenance. Check back in a minute.' ); ?></h1>
    238         </body>
    239         </html>
    240         <?php
    241         die();
     225        wp_die( $message, $title, 503 );
    242226}
    243227
    244228/**