WordPress.org

Make WordPress Core

Ticket #20004: 20004.notices.diff

File 20004.notices.diff, 506 bytes (added by duck_, 3 years ago)
  • wp-includes/cache.php

     
    534534         * @access private 
    535535         */ 
    536536        protected function _exists($key, $group) { 
    537                 return is_array( $this->cache[$group] ) && array_key_exists( $key, $this->cache[$group] ); 
     537                return isset( $this->cache[$group] ) && is_array( $this->cache[$group] ) && array_key_exists( $key, $this->cache[$group] ); 
    538538        } 
    539539 
    540540        /**