Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #14446


Ignore:
Timestamp:
07/28/2010 08:24:41 PM (14 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14446

    • Property Keywords changed from has_patch, needs_testing to has_patch needs_testing
    • Property Milestone changed from Awaiting Review to 3.1
  • Ticket #14446 – Description

    initial v1  
    2121{{{
    2222$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)
    2425
    2526This 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 :).