fix multisite object cache warnings, $table_prefix assignment, See #11644

git-svn-id: https://develop.svn.wordpress.org/trunk@12730 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick
2010-01-15 18:02:34 +00:00
parent 85de154ee3
commit 4239e6ef01
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -308,7 +308,7 @@ function switch_to_blog( $new_blog ) {
if ( is_object( $current_user ) )
$current_user->_init_caps();
if ( is_object( $wp_object_cache ) )
if ( is_object( $wp_object_cache ) && isset( $wp_object_cache->global_groups ) )
$global_groups = $wp_object_cache->global_groups;
else
$global_groups = false;
@@ -361,7 +361,7 @@ function restore_current_blog() {
if ( is_object( $current_user ) )
$current_user->_init_caps();
if ( is_object( $wp_object_cache ) )
if ( is_object( $wp_object_cache ) && isset( $wp_object_cache->global_groups ) )
$global_groups = $wp_object_cache->global_groups;
else
$global_groups = false;