wp/wp-includes/ms-files.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     6  *
     6  *
     7  * @package WordPress
     7  * @package WordPress
     8  * @subpackage Multisite
     8  * @subpackage Multisite
     9  */
     9  */
    10 
    10 
       
    11 define( 'MS_FILES_REQUEST', true );
    11 define( 'SHORTINIT', true );
    12 define( 'SHORTINIT', true );
    12 require_once dirname( __DIR__ ) . '/wp-load.php';
    13 require_once dirname( __DIR__ ) . '/wp-load.php';
    13 
    14 
    14 if ( ! is_multisite() ) {
    15 if ( ! is_multisite() ) {
    15 	die( 'Multisite support not enabled' );
    16 	die( 'Multisite support not enabled' );
    16 }
    17 }
    17 
    18 
    18 ms_file_constants();
    19 ms_file_constants();
    19 
       
    20 error_reporting( 0 );
       
    21 
    20 
    22 if ( '1' == $current_blog->archived || '1' == $current_blog->spam || '1' == $current_blog->deleted ) {
    21 if ( '1' == $current_blog->archived || '1' == $current_blog->spam || '1' == $current_blog->deleted ) {
    23 	status_header( 404 );
    22 	status_header( 404 );
    24 	die( '404 — File not found.' );
    23 	die( '404 — File not found.' );
    25 }
    24 }