[wp-trac] [WordPress Trac] #14814: Allow WP XML-RPC Library to be Extended
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 8 23:44:23 UTC 2010
#14814: Allow WP XML-RPC Library to be Extended
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: filosofo
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.1
Component: XML-RPC | Version: 3.1
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by filosofo):
I think you're just thrown off by the way the diff is rendered. Apply my
patch, and you'll see the following at the bottom of `xmlrpc.php`:
{{{
$xmlrpc_server_class = apply_filters('wp_xmlrpc_server_class',
'wp_xmlrpc_server');
if ( ! empty( $xmlrpc_server_class ) && class_exists( $xmlrpc_server_class
) ) {
$wp_xmlrpc_server = new $xmlrpc_server_class;
$wp_xmlrpc_server->serve_request();
}
}}}
The empty check is to allow someone to abort the server response with a
callback that returns false.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14814#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list