Changeset 1492
- Timestamp:
- 09/22/08 15:52:32 (2 months ago)
- Files:
-
- trunk/wp-includes/wpmu-functions.php (modified) (1 diff)
- trunk/xmlrpc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/wpmu-functions.php
r1462 r1492 1861 1861 */ 1862 1862 function wpmu_blogger_getUsersBlogs($args) { 1863 $site_details = get_blog_details( 1, true );1864 $domain = $ site_details->domain;1865 $path = $ site_details->path . 'xmlrpc.php';1863 global $current_blog; 1864 $domain = $current_blog->domain; 1865 $path = $current_blog->path . 'xmlrpc.php'; 1866 1866 1867 1867 $rpc = new IXR_Client("http://{$domain}{$path}"); trunk/xmlrpc.php
r1344 r1492 344 344 345 345 foreach( $blogs as $blog ) { 346 // Don't include blogs that aren't hosted at this site347 if( $blog->site_id != 1 )348 continue;349 350 346 $blog_id = $blog->userblog_id; 351 347 switch_to_blog($blog_id); … … 359 355 'xmlrpc' => get_option( 'home' ) . '/xmlrpc.php' 360 356 ); 357 restore_current_blog(); 361 358 } 362 359
