mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 14:35:07 +00:00
Don't hide empty terms when determing exclude trees. Props layotte. fixes #14446
git-svn-id: http://svn.automattic.com/wordpress/trunk@15797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b43424f94e
commit
6ffa9e31d3
@ -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…
x
Reference in New Issue
Block a user