mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Introduce a special wp_die handler for XMLRPC requests to ensure we send an XML response.
Props koke for the original patch. See #16748. git-svn-id: https://develop.svn.wordpress.org/trunk@17643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -98,6 +98,9 @@ function logIO($io,$msg) {
|
||||
if ( isset($HTTP_RAW_POST_DATA) )
|
||||
logIO("I", $HTTP_RAW_POST_DATA);
|
||||
|
||||
// Make sure wp_die output is XML
|
||||
add_filter( 'wp_die_handler', '_xmlrpc_wp_die_filter' );
|
||||
|
||||
// Allow for a plugin to insert a different class to handle requests.
|
||||
$wp_xmlrpc_server_class = apply_filters('wp_xmlrpc_server_class', 'wp_xmlrpc_server');
|
||||
$wp_xmlrpc_server = new $wp_xmlrpc_server_class;
|
||||
|
||||
Reference in New Issue
Block a user