diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index b03bb98800..31841cc97d 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -302,7 +302,7 @@ function wp_debug_mode() { } if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { - ini_set( 'display_errors', 0 ); + @ini_set( 'display_errors', 0 ); } }