Skip to content

Commit cbb9057

Browse files
committed
Seperate out the XML-RPC server active behaviour from object construction so that plugins can use the utility functions when extending the XML-RPC server. Fixes WordPress#10513 props davecpage.
git-svn-id: https://develop.svn.wordpress.org/trunk@11789 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 152a0d9 commit cbb9057

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

xmlrpc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ function wp_xmlrpc_server() {
201201

202202
$this->initialise_blog_option_info( );
203203
$this->methods = apply_filters('xmlrpc_methods', $this->methods);
204+
}
205+
206+
function serve_request() {
204207
$this->IXR_Server($this->methods);
205208
}
206209

@@ -3405,5 +3408,5 @@ function pingback_extensions_getPingbacks($args) {
34053408
}
34063409

34073410
$wp_xmlrpc_server = new wp_xmlrpc_server();
3408-
3411+
$wp_xmlrpc_server->serve_request();
34093412
?>

0 commit comments

Comments
 (0)