[wp-trac] [WordPress Trac] #16240: hide_empty doesn't work in get_terms() when hierarchical isn't set to false

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 12 10:44:44 UTC 2012


#16240: hide_empty doesn't work in get_terms() when hierarchical isn't set to false
-------------------------------+-----------------------------
 Reporter:  markjaquith        |       Owner:  markjaquith
     Type:  defect (bug)       |      Status:  new
 Priority:  high               |   Milestone:  Future Release
Component:  Taxonomy           |     Version:
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 With both `hierarchical` and `hide_empty` set to true, empty categories
 are only returned if they have non-empty children.

 There's a block in `get_terms()` for that (introduced in [4104]): [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.2/wp-
 includes/taxonomy.php#L1402

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16240#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list