[wp-trac] [WordPress Trac] #44279: `get_terms()` with `child_of` and `childless` combined

WordPress Trac noreply at wordpress.org
Wed Feb 28 23:30:40 UTC 2024


#44279: `get_terms()` with `child_of` and `childless` combined
----------------------------------------+-----------------------------
 Reporter:  nonverbla                   |       Owner:  (none)
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  Future Release
Component:  Taxonomy                    |     Version:  4.9.6
 Severity:  normal                      |  Resolution:
 Keywords:  has-unit-tests needs-patch  |     Focuses:
----------------------------------------+-----------------------------
Changes (by jorbin):

 * keywords:  has-patch has-unit-tests => has-unit-tests needs-patch
 * status:  closed => reopened
 * resolution:  invalid =>
 * milestone:   => Future Release


Comment:

 I think that the test doesn't actually show the case described in the
 ticket so I updated it.

 The test originally demonstrated direct children, but not all levels of
 children. To use the locations example, the test would return Antarctica
 which has no nations.

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


More information about the wp-trac mailing list