Changes between Initial Version and Version 1 of Ticket #14446
- Timestamp:
- 07/28/2010 08:24:41 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14446
-
Property
Keywords
changed from
has_patch, needs_testing
tohas_patch needs_testing
-
Property
Milestone
changed from
Awaiting Review
to3.1
-
Property
Keywords
changed from
-
Ticket #14446 – Description
initial v1 21 21 {{{ 22 22 $excluded_children = (array) get_terms($taxonomies[0], array('child_of' => intval($extrunk), 'fields' => 'ids' )); 23 }}} (line 925 of taxonomy.php) 23 }}} 24 (line 925 of taxonomy.php) 24 25 25 26 This was returning an empty array because all the children were empty. My diff fixes this by adding 'hide_empty' => 0 to the get_terms command. If we're looking for children to exclude, we probably want to exclude the empty ones too :).