Ticket #11431: 11431.diff
File 11431.diff, 721 bytes (added by , 16 years ago) |
---|
-
wp-includes/taxonomy.php
788 788 } 789 789 790 790 if ( empty($terms) ) { 791 wp_cache_add( $cache_key, array(), 'terms' );791 wp_cache_add( $cache_key, array(), 'terms', 86400 ); # one day 792 792 $terms = apply_filters('get_terms', array(), $taxonomies, $args); 793 793 return $terms; 794 794 } … … 835 835 $terms = array_slice($terms, $offset, $number); 836 836 } 837 837 838 wp_cache_add( $cache_key, $terms, 'terms' );838 wp_cache_add( $cache_key, $terms, 'terms', 86400 ); # one day 839 839 840 840 $terms = apply_filters('get_terms', $terms, $taxonomies, $args); 841 841 return $terms;