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
This commit is contained in:
parent
2ebabb330c
commit
c306dddb62
@ -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] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user