Fix inverted logic in [15331]. see #13934
git-svn-id: https://develop.svn.wordpress.org/trunk@15332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f338e835a2
commit
01443b68b3
|
@ -407,7 +407,7 @@ function switch_to_blog( $new_blog, $validate = false ) {
|
|||
$wpdb->suppress_errors( false );
|
||||
}
|
||||
|
||||
if ( ! did_action('init') ) {
|
||||
if ( did_action('init') ) {
|
||||
$current_user = wp_get_current_user();
|
||||
if ( is_object( $current_user ) )
|
||||
$current_user->for_blog( $blog_id );
|
||||
|
@ -463,7 +463,7 @@ function restore_current_blog() {
|
|||
$wpdb->suppress_errors( false );
|
||||
}
|
||||
|
||||
if ( ! did_action('init') ) {
|
||||
if ( did_action('init') ) {
|
||||
$current_user = wp_get_current_user();
|
||||
if ( is_object( $current_user ) )
|
||||
$current_user->for_blog( $blog_id );
|
||||
|
|
Loading…
Reference in New Issue