Make WordPress Core

Changes between Version 25 and Version 26 of Ticket #48693, comment 12


Ignore:
Timestamp:
01/17/2020 07:41:15 AM (6 years ago)
Author:
autotutorial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48693, comment 12

    v25 v26  
    3636<?php
    3737error_reporting( 0 );
    38         if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() || wp_is_json_request() ) {
    39                 ini_set( 'display_errors', 0 );
    40         }
    4138        if ( WP_DEBUG ) {
    4239
     
    6360                error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    6461        }
     62error_reporting( 0 );
     63        if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() || wp_is_json_request() ) {
     64                ini_set( 'display_errors', 0 );
     65        }
    6566}
    6667}}}