Changeset 9737 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 11/17/2008 08:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r9652 r9737 310 310 } 311 311 312 if ( is_object($term) ) {312 if ( is_object($term) && empty($term->filter) ) { 313 313 wp_cache_add($term->term_id, $term, $taxonomy); 314 314 $_term = $term; 315 315 } else { 316 if ( is_object($term) ) 317 $term = $term->term_id; 316 318 $term = (int) $term; 317 319 if ( ! $_term = wp_cache_get($term, $taxonomy) ) { … … 890 892 } 891 893 } 894 895 if ( $do_object ) 896 $term->filter = $context; 897 else 898 $term['filter'] = $context; 892 899 893 900 return $term;
Note: See TracChangeset
for help on using the changeset viewer.