update wpdb blogid using setter, See #12362
git-svn-id: https://develop.svn.wordpress.org/trunk@13386 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
69021b5fc4
commit
b2e6817220
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user