Changeset 5594
- Timestamp:
- 05/29/2007 09:50:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5593 r5594 6 6 $wp_taxonomies['link_category'] = (object) array('name' => 'link_category', 'object_type' => 'link', 'hierarchical' => false); 7 7 8 //error_log(var_export($wp_taxonomies, true), 0);9 8 function is_taxonomy( $taxonomy ) { 10 9 global $wp_taxonomies; … … 715 714 716 715 foreach ( $terms as $term ) { 716 $use_id = false; 717 if ( !is_object($term) ) { 718 $term = get_term($term, $taxonomy); 719 $use_id = true; 720 } 721 717 722 if ( $term->term_id == $term_id ) 718 723 continue; 719 724 720 725 if ( $term->parent == $term_id ) { 721 $term_list[] = $term; 726 if ( $use_id ) 727 $term_list[] = $term->term_id; 728 else 729 $term_list[] = $term; 722 730 723 731 if ( !isset($has_children[$term->term_id]) )
Note: See TracChangeset
for help on using the changeset viewer.