Ticket #16748: 16748.diff
File 16748.diff, 892 bytes (added by , 14 years ago) |
---|
-
xmlrpc.php
98 98 if ( isset($HTTP_RAW_POST_DATA) ) 99 99 logIO("I", $HTTP_RAW_POST_DATA); 100 100 101 function xmlrpc_wp_die($message, $title = '', $args = array()) { 102 global $wp_xmlrpc_server; 103 104 if ($wp_xmlrpc_server) { 105 $error = new IXR_Error(500, $message); 106 $wp_xmlrpc_server->output($error->getXml()); 107 } 108 } 109 110 function xmlrpc_wp_die_filter() { 111 return "xmlrpc_wp_die"; 112 } 113 add_filter('wp_die_handler', 'xmlrpc_wp_die_filter'); 114 101 115 // Allow for a plugin to insert a different class to handle requests. 102 116 $wp_xmlrpc_server_class = apply_filters('wp_xmlrpc_server_class', 'wp_xmlrpc_server'); 103 117 $wp_xmlrpc_server = new $wp_xmlrpc_server_class; 104 118 105 119 // Fire off the request 106 120 $wp_xmlrpc_server->serve_request(); 107 ?> 108 No newline at end of file 121 ?>