From 9a032e6eef30e962ccf7b1eac39d6d2b4f9ba633 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 25 Jun 2010 16:17:33 +0000 Subject: [PATCH] Fix inverted logic in [15331]. see #13934 git-svn-id: http://svn.automattic.com/wordpress/trunk@15332 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 48c208219..29d395a77 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 );