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

git-svn-id: http://svn.automattic.com/wordpress/trunk@12730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru
2010-01-15 18:02:34 +00:00
parent 933e511518
commit 432087e89e
2 changed files with 3 additions and 3 deletions

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;