Changeset 5593 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/29/2007 09:27:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5592 r5593 657 657 } 658 658 659 function get_term_children( $term, $taxonomy ) { 660 $terms = _get_term_hierarchy($taxonomy); 661 662 if ( ! isset($terms[$term]) ) 663 return array(); 664 665 $children = $terms[$term]; 666 667 foreach ( $terms[$term] as $child ) { 668 if ( isset($terms[$child]) ) 669 $children = array_merge($children, get_term_children($child, $taxonomy)); 670 } 671 672 return $children; 673 } 674 659 675 function clean_term_cache($ids, $taxonomy) { 660 676 if ( !is_array($ids) )
Note: See TracChangeset
for help on using the changeset viewer.