Changeset 15315 for trunk/wp-includes/ms-blogs.php
- Timestamp:
- 06/24/2010 03:01:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-blogs.php
r15168 r15315 372 372 373 373 function switch_to_blog( $new_blog, $validate = false ) { 374 global $wpdb, $table_prefix, $blog_id, $switched, $switched_stack, $wp_roles, $ current_user, $wp_object_cache;374 global $wpdb, $table_prefix, $blog_id, $switched, $switched_stack, $wp_roles, $wp_object_cache; 375 375 376 376 if ( empty($new_blog) ) … … 407 407 $wpdb->suppress_errors( false ); 408 408 } 409 409 410 $current_user = wp_get_current_user(); 410 411 if ( is_object( $current_user ) ) 411 412 $current_user->for_blog( $blog_id ); … … 431 432 432 433 function restore_current_blog() { 433 global $table_prefix, $wpdb, $blog_id, $switched, $switched_stack, $wp_roles, $ current_user, $wp_object_cache;434 global $table_prefix, $wpdb, $blog_id, $switched, $switched_stack, $wp_roles, $wp_object_cache; 434 435 435 436 if ( !$switched ) … … 461 462 } 462 463 464 $current_user = wp_get_current_user(); 463 465 if ( is_object( $current_user ) ) 464 466 $current_user->for_blog( $blog_id );
Note: See TracChangeset
for help on using the changeset viewer.