Changeset 10810 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 03/18/2009 02:43:45 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r10803 r10810 536 536 * 537 537 * exclude_tree - A comma- or space-delimited string of term ids to exclude 538 * from the return array, along with all of their descendant terms according to 538 * from the return array, along with all of their descendant terms according to 539 539 * the primary taxonomy. If 'include' is non-empty, 'exclude_tree' is ignored. 540 540 * … … 693 693 $excluded_trunks = preg_split('/[\s,]+/',$exclude_tree); 694 694 foreach( (array) $excluded_trunks as $extrunk ) { 695 $excluded_children = (array) get_terms($taxonomies[0], array('child_of' => intval($extrunk), 'fields' => 'ids')); 695 $excluded_children = (array) get_terms($taxonomies[0], array('child_of' => intval($extrunk), 'fields' => 'ids')); 696 696 $excluded_children[] = $extrunk; 697 697 foreach( (array) $excluded_children as $exterm ) { … … 737 737 $where .= ' AND tt.count > 0'; 738 738 739 // don't limit the query results when we have to descend the family tree 739 // don't limit the query results when we have to descend the family tree 740 740 if ( ! empty($number) && ! $hierarchical && empty( $child_of ) && '' == $parent ) { 741 741 if( $offset )
Note: See TracChangeset
for help on using the changeset viewer.