WordPress 3.8.2
[autoinstalls/wordpress.git] / wp-includes / class-wp-xmlrpc-server.php
index 5b5081193ffb714e60f9df7c3649e470c5cc322f..255a29c4401b87b64efcbd9fd7ae6fe624c25c1e 100644 (file)
@@ -459,7 +459,6 @@ class wp_xmlrpc_server extends IXR_Server {
         *  - 'xmlrpc' - url of xmlrpc endpoint
         */
        function wp_getUsersBlogs( $args ) {
-               global $current_site;
                // If this isn't on WPMU then just use blogger_getUsersBlogs
                if ( !is_multisite() ) {
                        array_unshift( $args, 1 );
@@ -481,7 +480,7 @@ class wp_xmlrpc_server extends IXR_Server {
 
                foreach ( $blogs as $blog ) {
                        // Don't include blogs that aren't hosted at this site
-                       if ( $blog->site_id != $current_site->id )
+                       if ( $blog->site_id != get_current_site()->id )
                                continue;
 
                        $blog_id = $blog->userblog_id;