WordPress.org

Make WordPress Core

Ticket #13318: taxonomy.diff

File taxonomy.diff, 729 bytes (added by djudorange, 8 years ago)

the patch

  • wp-includes/taxonomy.php

     
    797797
    798798        // $args can be whatever, only use the args defined in defaults to compute the key
    799799        $filter_key = ( has_filter('list_terms_exclusions') ) ? serialize($GLOBALS['wp_filter']['list_terms_exclusions']) : '';
    800         $key = md5( serialize( compact(array_keys($defaults)) ) . serialize( $taxonomies ) . $filter_key );
     800        $key = md5( serialize( compact(array_keys($args)) ) . serialize( $taxonomies ) . $filter_key );
    801801        $last_changed = wp_cache_get('last_changed', 'terms');
    802802        if ( !$last_changed ) {
    803803                $last_changed = time();