Changeset 1281
- Timestamp:
- 05/09/08 17:28:14 (2 months ago)
- Files:
-
- trunk/wp-includes/wpmu-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/wpmu-functions.php
r1279 r1281 323 323 324 324 function switch_to_blog( $new_blog ) { 325 global $ tmpoldblogdetails, $wpdb, $table_prefix, $blog_id, $switched, $switched_stack, $wp_roles, $current_user;325 global $wpdb, $table_prefix, $blog_id, $switched, $switched_stack, $wp_roles, $current_user, $wp_object_cache; 326 326 327 327 if ( empty($new_blog) ) 328 $new_blog = $blog_id; 328 return; 329 330 if ( $blog_id == $new_blog ) 331 return; 329 332 330 333 if ( empty($switched_stack) ) … … 351 354 352 355 function restore_current_blog() { 353 global $table_prefix, $ tmpoldblogdetails, $wpdb, $blog_id, $switched, $switched_stack, $wp_roles, $current_user;356 global $table_prefix, $wpdb, $blog_id, $switched, $switched_stack, $wp_roles, $current_user, $wp_object_cache; 354 357 355 358 if ( !$switched ) … … 1859 1862 } 1860 1863 1864 if( is_object( $wp_object_cache ) ) { 1865 $wp_object_cache->global_groups = array ('users', 'userlogins', 'usermeta', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss'); 1866 $wp_object_cache->non_persistent_groups = array('comment', 'counts'); 1867 } 1868 1861 1869 ?>
