Make WordPress Core


Ignore:
Timestamp:
07/06/2021 08:20:51 PM (5 years ago)
Author:
iandunn
Message:

Multisite: Log error/warnings/notices from ms-files.php.

Previously errors were not displayed or logged, but the original intention was only to prevent them from being displayed. Hiding them from logs makes problems like #53492 much harder to debug.

This makes the handling of errors in ms-files consistent with the REST API, admin-ajax, and XML-RPC.

Props iandunn, johnjamesjacoby.
Fixes #53493.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-files.php

    r47219 r51358  
    99 */
    1010
     11define( 'MS_FILES_REQUEST', true );
    1112define( 'SHORTINIT', true );
    1213require_once dirname( __DIR__ ) . '/wp-load.php';
     
    1718
    1819ms_file_constants();
    19 
    20 error_reporting( 0 );
    2120
    2221if ( '1' == $current_blog->archived || '1' == $current_blog->spam || '1' == $current_blog->deleted ) {
Note: See TracChangeset for help on using the changeset viewer.