Make WordPress Core

Ticket #57134: 57134-suggestion.patch

File 57134-suggestion.patch, 429 bytes (added by ayeshrajans, 17 months ago)
  • src/wp-includes/load.php

    diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
    index 52453802c0..0b260aa338 100644
    a b function wp_maintenance() { 
    270270        }
    271271
    272272        if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) {
     273                status_header( 503 );
     274                nocache_headers();
     275                header( 'Retry-After: 600' );
     276
    273277                require_once WP_CONTENT_DIR . '/maintenance.php';
    274278                die();
    275279        }