Changeset 5906 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 08/20/2007 10:50:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5896 r5906 230 230 * might be inaccurate or wrong. 231 231 */ 232 function &get_term(&$term, $taxonomy, $output = OBJECT ) {232 function &get_term(&$term, $taxonomy, $output = OBJECT, $filter = 'raw') { 233 233 global $wpdb; 234 234 … … 252 252 $_term = apply_filters('get_term', $_term, $taxonomy); 253 253 $_term = apply_filters("get_$taxonomy", $_term, $taxonomy); 254 $_term = sanitize_term($_term, $taxonomy, $filter); 254 255 255 256 if ( $output == OBJECT ) { … … 560 561 561 562 function sanitize_term($term, $taxonomy, $context = 'display') { 562 $fields = array('term_id', 'name', 'description', 'slug', 'count', ' term_group');563 $fields = array('term_id', 'name', 'description', 'slug', 'count', 'parent', 'term_group'); 563 564 564 565 $do_object = false;
Note: See TracChangeset
for help on using the changeset viewer.