From 01443b68b3eb964d19b4e5f25de25a06c703f882 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 25 Jun 2010 16:17:33 +0000 Subject: [PATCH] Fix inverted logic in [15331]. see #13934 git-svn-id: https://develop.svn.wordpress.org/trunk@15332 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/ms-blogs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index 48c2082193..29d395a77f 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -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 );