Changeset 15331
- Timestamp:
- 06/25/2010 04:16:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-blogs.php
r15315 r15331 408 408 } 409 409 410 $current_user = wp_get_current_user(); 411 if ( is_object( $current_user ) ) 412 $current_user->for_blog( $blog_id ); 410 if ( ! did_action('init') ) { 411 $current_user = wp_get_current_user(); 412 if ( is_object( $current_user ) ) 413 $current_user->for_blog( $blog_id ); 414 } 413 415 414 416 if ( is_object( $wp_object_cache ) && isset( $wp_object_cache->global_groups ) ) … … 462 464 } 463 465 464 $current_user = wp_get_current_user(); 465 if ( is_object( $current_user ) ) 466 $current_user->for_blog( $blog_id ); 466 if ( ! did_action('init') ) { 467 $current_user = wp_get_current_user(); 468 if ( is_object( $current_user ) ) 469 $current_user->for_blog( $blog_id ); 470 } 467 471 468 472 if ( is_object( $wp_object_cache ) && isset( $wp_object_cache->global_groups ) )
Note: See TracChangeset
for help on using the changeset viewer.