From e7d31d1641d88850969d6f9afd6bc535558461f1 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 17 May 2016 20:21:33 +0000 Subject: [PATCH] Bootstrap/Load: Silence `ini_set()` in `wp_debug_mode()`. Props SergeyBiryukov. Fixes #36708 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@37448 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } }