From c306dddb6251dc5dba73caca3020265792a0573c Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Fri, 2 Mar 2012 21:57:03 +0000 Subject: [PATCH] Prevent notices by checking if the $group key isset(). See #20004. git-svn-id: https://develop.svn.wordpress.org/trunk@20091 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 232bf735cd..bb61249cfb 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -534,7 +534,7 @@ class WP_Object_Cache { * @access private */ protected function _exists($key, $group) { - return is_array( $this->cache[$group] ) && array_key_exists( $key, $this->cache[$group] ); + return isset( $this->cache[$group] ) && is_array( $this->cache[$group] ) && array_key_exists( $key, $this->cache[$group] ); } /**