From a62e681239d89e6cdf0a61842c517b8747ea5021 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 5 Jul 2013 17:38:14 +0000 Subject: [PATCH] Don't display errors for XML-RPC requests, as they malform the response. fixes #23811. props kovshenin, markoheijnen. git-svn-id: http://core.svn.wordpress.org/trunk@24564 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/load.php b/wp-includes/load.php index 0596b0cfb6..15b2965d24 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -272,6 +272,8 @@ function wp_debug_mode() { } else { 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 ); } + if ( defined( 'XMLRPC_REQUEST' ) ) + ini_set( 'display_errors', 0 ); } /**