diff --git src/wp-includes/load.php src/wp-includes/load.php
index 780613f..0ca54bf 100644
|
|
function wp_debug_mode() { |
301 | 301 | 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 ); |
302 | 302 | } |
303 | 303 | |
304 | | if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { |
305 | | ini_set( 'display_errors', 0 ); |
| 304 | if ( ! WP_DEBUG && ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) ) { |
| 305 | @ini_set( 'display_errors', 0 ); |
306 | 306 | } |
307 | 307 | } |
308 | 308 | |