Changeset 8225

Show
Ignore:
Timestamp:
07/01/08 15:54:58 (3 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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' ) ) {