Ticket #16863: 16863.patch
File 16863.patch, 778 bytes (added by , 14 years ago) |
---|
-
wp-includes/taxonomy.php
1385 1385 1386 1386 // Make sure we show empty categories that have children. 1387 1387 if ( $hierarchical && $hide_empty && is_array($terms) ) { 1388 $tax_terms = !empty($include) || !empty($exclude) || !empty($exclude_tree) ? get_terms($taxonomies) : $terms; 1389 1388 1390 foreach ( $terms as $k => $term ) { 1389 1391 if ( ! $term->count ) { 1390 $children = _get_term_children($term->term_id, $t erms, $taxonomies[0]);1392 $children = _get_term_children($term->term_id, $tax_terms, $taxonomies[0]); 1391 1393 if ( is_array($children) ) 1392 1394 foreach ( $children as $child ) 1393 1395 if ( $child->count )