WordPress.org

Make WordPress Core

Changeset 15797


Ignore:
Timestamp:
10/13/10 20:12:20 (4 years ago)
Author:
ryan
Message:

Don't hide empty terms when determing exclude trees. Props layotte. fixes #14446

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r15777 r15797  
    10051005        $excluded_trunks = wp_parse_id_list($exclude_tree); 
    10061006        foreach ( $excluded_trunks as $extrunk ) { 
    1007             $excluded_children = (array) get_terms($taxonomies[0], array('child_of' => intval($extrunk), 'fields' => 'ids')); 
     1007            $excluded_children = (array) get_terms($taxonomies[0], array('child_of' => intval($extrunk), 'fields' => 'ids', 'hide_empty' => 0)); 
    10081008            $excluded_children[] = $extrunk; 
    10091009            foreach( $excluded_children as $exterm ) { 
Note: See TracChangeset for help on using the changeset viewer.