[wp-trac] [WordPress Trac] #29839: Enhance get_terms to return only bottom child terms (terms without children) when taxonomy is heirarchical
WordPress Trac
noreply at wordpress.org
Mon Nov 10 02:43:26 UTC 2014
#29839: Enhance get_terms to return only bottom child terms (terms without
children) when taxonomy is heirarchical
-------------------------------------------------+-------------------------
Reporter: theMikeD | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Taxonomy | Review
Severity: normal | Version: 4.0
Keywords: good-first-bug has-patch needs- | Resolution:
unit-tests | Focuses:
-------------------------------------------------+-------------------------
Changes (by boonebgorges):
* keywords: good-first-bug has-patch => good-first-bug has-patch needs-
unit-tests
Comment:
horike - Thanks for the patch. A couple initial thoughts (for you and/or
theMikeD :) ):
* The proposed 'child' appears to do a bit more than the original
suggestion. The idea was to get leaf nodes, but 'child' will only get leaf
nodes of a given ancestor. How about separating the leaf logic into its
own parameter, which could then be combined with 'child_of' to accomplish
the more specific filtering?
* Function documentation will need updating.
* Needs unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29839#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list