Don't hide empty terms when determing exclude trees. Props layotte. fixes #14446
git-svn-id: https://develop.svn.wordpress.org/trunk@15797 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
50a6be80d4
commit
cd1fc3faa2
@ -1004,7 +1004,7 @@ function &get_terms($taxonomies, $args = '') {
|
||||
if ( !empty( $exclude_tree ) ) {
|
||||
$excluded_trunks = wp_parse_id_list($exclude_tree);
|
||||
foreach ( $excluded_trunks as $extrunk ) {
|
||||
$excluded_children = (array) get_terms($taxonomies[0], array('child_of' => intval($extrunk), 'fields' => 'ids'));
|
||||
$excluded_children = (array) get_terms($taxonomies[0], array('child_of' => intval($extrunk), 'fields' => 'ids', 'hide_empty' => 0));
|
||||
$excluded_children[] = $extrunk;
|
||||
foreach( $excluded_children as $exterm ) {
|
||||
if ( empty($exclusions) )
|
||||
|
Loading…
Reference in New Issue
Block a user