[wp-trac] [WordPress Trac] #27123: get_categories returning duplicate child categories in 3.9

WordPress Trac noreply at wordpress.org
Fri Mar 7 19:29:03 UTC 2014


#27123: get_categories returning duplicate child categories in 3.9
------------------------------+-----------------------------
 Reporter:  BStofko           |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.9
Component:  Taxonomy          |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27458"]:
 {{{
 #!CommitTicketReference repository="" revision="27458"
 In `get_terms()`, leverage `get_term_children()` over
 `_get_term_children()` when making sure to show empty terms that have
 children in a hierarchical taxonomy while avoiding duplicates.

 Adds unit test for `child_of` param. Adjusts unit tests for `get_terms()`.

 See [27108] and [27125].
 Props SergeyBiryukov.
 Fixes #27123.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27123#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list