diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-19 16:58:41 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-19 16:58:41 +0000 |
commit | fc3782b82d1b3611e7b0752019744a04e6e59140 (patch) | |
tree | 546bcfdd8cc46fb86d91c5e910261260e7f48ee9 /wp-includes/wpmu-functions.php | |
parent | 71861c0082e2fc0475459ba41d45fe3822854b97 (diff) | |
download | wordpress-mu-fc3782b82d1b3611e7b0752019744a04e6e59140.tar.gz wordpress-mu-fc3782b82d1b3611e7b0752019744a04e6e59140.tar.xz wordpress-mu-fc3782b82d1b3611e7b0752019744a04e6e59140.zip |
Call wp_getUsersBlogs() directly instead of xmlrpc request
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1487 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 6d5227d..7ce95b8 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1890,13 +1890,7 @@ XMLRPC getUsersBlogs() for a multiblog environment http://trac.mu.wordpress.org/attachment/ticket/551/xmlrpc-mu.php */ function wpmu_blogger_getUsersBlogs($args) { - $site_details = get_blog_details( 1, true ); - $domain = $site_details->domain; - $path = $site_details->path . 'xmlrpc.php'; - - $rpc = new IXR_Client("http://{$domain}{$path}"); - $rpc->query('wp.getUsersBlogs', $args[1], $args[2]); - $blogs = $rpc->getResponse(); + $blogs = wp_getUsersBlogs( $args ); if ( isset($blogs['faultCode']) ) { return new IXR_Error($blogs['faultCode'], $blogs['faultString']); |