update wpdb blogid using setter, See #12362

git-svn-id: http://svn.automattic.com/wordpress/trunk@13386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-02-24 21:07:23 +00:00
parent a312eea3a7
commit c9df482e54
1 changed files with 1 additions and 2 deletions

View File

@ -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