Changeset 51358
- Timestamp:
- 07/06/2021 08:20:51 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r51301 r51358 416 416 * When `WP_DEBUG_LOG` is a valid path, errors will be logged to the specified file. 417 417 * 418 * Errors are never displayed for XML-RPC, REST, and Ajax requests.418 * Errors are never displayed for XML-RPC, REST, `ms-files.php`, and Ajax requests. 419 419 * 420 420 * @since 3.0.0 … … 482 482 } 483 483 484 if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() || wp_is_json_request() ) { 484 if ( 485 defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || defined( 'MS_FILES_REQUEST' ) || 486 ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || 487 wp_doing_ajax() || wp_is_json_request() ) { 485 488 ini_set( 'display_errors', 0 ); 486 489 } -
trunk/src/wp-includes/ms-files.php
r47219 r51358 9 9 */ 10 10 11 define( 'MS_FILES_REQUEST', true ); 11 12 define( 'SHORTINIT', true ); 12 13 require_once dirname( __DIR__ ) . '/wp-load.php'; … … 17 18 18 19 ms_file_constants(); 19 20 error_reporting( 0 );21 20 22 21 if ( '1' == $current_blog->archived || '1' == $current_blog->spam || '1' == $current_blog->deleted ) {
Note: See TracChangeset
for help on using the changeset viewer.