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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user