Resurrect the switched global. Some are still using it. see #21459

git-svn-id: https://develop.svn.wordpress.org/trunk@21581 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-08-22 03:34:00 +00:00
parent ebcef178df
commit f6e6eece0c
2 changed files with 7 additions and 7 deletions

View File

@@ -127,7 +127,7 @@ $wpdb->set_prefix( $table_prefix, false ); // $table_prefix can be set in sunris
$wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id );
$table_prefix = $wpdb->get_blog_prefix();
$_wp_switched_stack = array();
$_wp_switched = false;
$switched = false;
// need to init cache again after blog_id is set
wp_start_object_cache();