summaryrefslogtreecommitdiffstats
path: root/wp-includes/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/cache.php')
-rw-r--r--wp-includes/cache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/cache.php b/wp-includes/cache.php
index 0fe45ff..338f20b 100644
--- a/wp-includes/cache.php
+++ b/wp-includes/cache.php
@@ -86,10 +86,10 @@ class WP_Object_Cache {
$group = 'default';
$pre_test = substr( $group, 0, strpos( $group, '-' ) );
- if( $pre_test == intval( $pre_test ) )
+ if( $pre_test != '' && $pre_test == intval( $pre_test ) )
return $group; // already localized.
$prefix = '';
- if (false === array_search($group, $this->global_groups))
+ if (true !== array_search($group, $this->global_groups))
$prefix = $wpdb->blogid . '-';
return "$prefix$group";