mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
12ff8a31c3
commit
159b426ef5
@ -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
Block a user