WordPress.org

Make WordPress Core

Ticket #15799: 15799.diff

File 15799.diff, 1.1 KB (added by nacin, 3 years ago)
  • wp-includes/ms-load.php

     
    8484                if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) { 
    8585                        return WP_CONTENT_DIR . '/blog-deleted.php'; 
    8686                } else { 
    87                         header( 'HTTP/1.1 410 Gone' ); 
    88                         wp_die( /*WP_I18N_USER_DELETED_BLOG*/'This user has elected to delete their account and the content is no longer available.'/*/WP_I18N_USER_DELETED_BLOG*/ ); 
     87                        wp_die( /*WP_I18N_USER_DELETED_BLOG*/'This user has elected to delete their account and the content is no longer available.'/*/WP_I18N_USER_DELETED_BLOG*/, '', array( 'response' => 410 ) ); 
    8988                } 
    9089        } 
    9190 
     
    10099                if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) { 
    101100                        return WP_CONTENT_DIR . '/blog-suspended.php'; 
    102101                } else { 
    103                         header( 'HTTP/1.1 410 Gone' ); 
    104                         wp_die( /*WP_I18N_ARCHIVED*/'This site has been archived or suspended.'/*/WP_I18N_ARCHIVED*/ ); 
     102                        wp_die( /*WP_I18N_ARCHIVED*/'This site has been archived or suspended.'/*/WP_I18N_ARCHIVED*/, '', array( 'response' => 410 ) ); 
    105103                } 
    106104        } 
    107105