Constructor cleanup. Props ocean90. fixes #16768

git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-04-29 20:05:12 +00:00
parent 54822700b8
commit 9730cb8d15
33 changed files with 54 additions and 122 deletions

View File

@@ -24,7 +24,7 @@ class wp_xmlrpc_server extends IXR_Server {
/**
* Register all of the XMLRPC methods that XMLRPC server understands.
*
* PHP4 constructor and sets up server and method property. Passes XMLRPC
* Sets up server and method property. Passes XMLRPC
* methods through the 'xmlrpc_methods' filter to allow plugins to extend
* or replace XMLRPC methods.
*
@@ -32,7 +32,7 @@ class wp_xmlrpc_server extends IXR_Server {
*
* @return wp_xmlrpc_server
*/
function wp_xmlrpc_server() {
function __construct() {
$this->methods = array(
// WordPress API
'wp.getUsersBlogs' => 'this:wp_getUsersBlogs',