Make WordPress Core


Ignore:
Timestamp:
07/01/2008 03:54:58 PM (16 years ago)
Author:
ryan
Message:

Account for term exclusion filter when creating cache key. Props filosofo. fixes #7213

File:
1 edited

Legend:

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

    r8164 r8225  
    602602
    603603    // $args can be whatever, only use the args defined in defaults to compute the key
    604     $key = md5( serialize( compact(array_keys($defaults)) ) . serialize( $taxonomies ) );
     604    $filter_key = ( has_filter('list_terms_exclusions') ) ? serialize($GLOBALS['wp_filter']['list_terms_exclusions']) : '';
     605    $key = md5( serialize( compact(array_keys($defaults)) ) . serialize( $taxonomies ) . $filter_key );
    605606
    606607    if ( $cache = wp_cache_get( 'get_terms', 'terms' ) ) {
Note: See TracChangeset for help on using the changeset viewer.