From 159b426ef51b138bf3dfe6fa3e745c67eb3b7d69 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: https://develop.svn.wordpress.org/trunk@24564 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ); } /**