mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
Prevent notices by checking if the $group key isset(). See #20004.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
085a053c22
commit
c0892fbaf0
@ -534,7 +534,7 @@ class WP_Object_Cache {
|
|||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
protected function _exists($key, $group) {
|
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