From 461f029eac4a1ec46318a87eb1cfdbf16ff21550 Mon Sep 17 00:00:00 2001 From: westi Date: Sat, 8 Aug 2009 08:38:20 +0000 Subject: [PATCH] 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 #10513 props davecpage. git-svn-id: http://svn.automattic.com/wordpress/trunk@11789 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index ac4ea4b399..17c2f43484 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -201,6 +201,9 @@ class wp_xmlrpc_server extends IXR_Server { $this->initialise_blog_option_info( ); $this->methods = apply_filters('xmlrpc_methods', $this->methods); + } + + function serve_request() { $this->IXR_Server($this->methods); } @@ -3405,5 +3408,5 @@ class wp_xmlrpc_server extends IXR_Server { } $wp_xmlrpc_server = new wp_xmlrpc_server(); - +$wp_xmlrpc_server->serve_request(); ?>