[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
Sat Jan 24 18:39:44 UTC 2015
#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: 4.2
Component: Taxonomy | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------
Comment (by boonebgorges):
I'm going to move forward with this. A few changes I'm making to the most
recent patches:
- break up unit tests into smaller pieces, and eliminate some redundancies
(I don't see a need to test alongside 'hide_empty' variants)
- change the way the `$exclusions` clause is built, so that it compiles an
array and translates it into a SQL string one time, rather than stringing
together little bits of SQL
- ensure that 'childless' respects all passed `$taxonomies`, not just the
first one
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29839#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list