diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-19 16:58:15 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-19 16:58:15 +0000 |
commit | 71861c0082e2fc0475459ba41d45fe3822854b97 (patch) | |
tree | 42a848d648da013fe2a89bb1b4c19a3107112b99 /xmlrpc.php | |
parent | 6997ba74c2904e5b1294c6b6729f0f75495ee944 (diff) | |
download | wordpress-mu-71861c0082e2fc0475459ba41d45fe3822854b97.tar.gz wordpress-mu-71861c0082e2fc0475459ba41d45fe3822854b97.tar.xz wordpress-mu-71861c0082e2fc0475459ba41d45fe3822854b97.zip |
No need to filter out site_id != 1 blogs
Added restore blog call to avoid stack geting potentially huge!
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1486 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'xmlrpc.php')
-rw-r--r-- | xmlrpc.php | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -343,10 +343,6 @@ class wp_xmlrpc_server extends IXR_Server { $struct = array( ); foreach( $blogs as $blog ) { - // Don't include blogs that aren't hosted at this site - if( $blog->site_id != 1 ) - continue; - $blog_id = $blog->userblog_id; switch_to_blog($blog_id); $is_admin = current_user_can('level_8'); @@ -358,6 +354,7 @@ class wp_xmlrpc_server extends IXR_Server { 'blogName' => get_option( 'blogname' ), 'xmlrpc' => get_option( 'home' ) . '/xmlrpc.php' ); + restore_current_blog(); } return $struct; |