From c9df482e547c2abd2417f615842298b9eb0171d5 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Wed, 24 Feb 2010 21:07:23 +0000 Subject: [PATCH] update wpdb blogid using setter, See #12362 git-svn-id: http://svn.automattic.com/wordpress/trunk@13386 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-settings.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/ms-settings.php b/wp-includes/ms-settings.php index ae7e801e51..f5e5fb5100 100644 --- a/wp-includes/ms-settings.php +++ b/wp-includes/ms-settings.php @@ -115,9 +115,8 @@ if ( ! $blog_id ) { } } -$wpdb->blogid = $current_blog->blog_id; -$wpdb->siteid = $current_blog->site_id; $wpdb->set_prefix( $table_prefix ); // set up blog tables +$wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id ); $table_prefix = $wpdb->get_blog_prefix(); // need to init cache again after blog_id is set