WordPress.org

Make WordPress Core

Ticket #11742: 12742.5.diff

File 12742.5.diff, 1.3 KB (added by nacin, 4 years ago)

Return error_reporting(0) to ms-files.php, reverting [13038]. Remove deprecated warnings as it breaks media file handling, and no translation support exists, reverting part of [12977].

  • wp-content/blogs.php

     
    55 * @package WordPress 
    66 * @subpackage Multisite 
    77 */ 
    8    
    9 define( 'SHORTINIT', true ); 
    10 require_once( dirname( dirname( __FILE__) ) . '/wp-load.php' ); 
    11 /* l10n is not loaded on SHORTINIT */   
    12 _deprecated_file( basename( __FILE__ ), '3.0', null, sprintf( 'Change your rewrite rules to use <code>%1$s</code> instead of <code>%2$s</code>.', 'wp-includes/ms-files.php', 'wp-content/blogs.php' ) ); 
    13    
     8 
    149/** Load Multisite upload handler. */ 
    1510require_once( ABSPATH . WPINC . '/ms-files.php' ); 
    16    
     11 
    1712?> 
  • wp-includes/ms-files.php

     
    88 * @subpackage Multisite 
    99 */ 
    1010 
    11 if ( ! defined( 'SHORTINIT' ) ) { 
    12         define( 'SHORTINIT', true ); 
    13         require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 
    14 } 
    1511 
     12define( 'SHORTINIT', true ); 
     13require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 
     14 
     15error_reporting(0); 
     16 
    1617ms_default_constants( 'ms-files' ); 
    1718 
    1819if ( $current_blog->archived == '1' || $current_blog->spam == '1' || $current_blog->deleted == '1' ) {