diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 43d1a158a..04699f177 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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) )