WordPress.org

Make WordPress Core

Changeset 20091


Ignore:
Timestamp:
03/02/2012 09:57:03 PM (6 years ago)
Author:
duck_
Message:

Prevent notices by checking if the $group key isset(). See #20004.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r20089 r20091  
    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
Note: See TracChangeset for help on using the changeset viewer.