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
This commit is contained in:
parent
24ac7c4ac5
commit
a62e681239
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue