[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
Sun Nov 16 20:17:20 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: Future Release
Component: Taxonomy | Version: 4.0
Severity: normal | Resolution:
Keywords: 4.2-early has-patch | Focuses:
---------------------------------+-----------------------------
Comment (by theMikeD):
{{{
$brazil = $this->factory->term->create_and_get( array( 'name' =>
'Brazil', 'taxonomy' => $flat_tax ) );
error_log( print_r( $brazil, true));
}}}
gives a null response, and from the look of it it shouldn't. In any case,
there is little difference between using this one (once I get it to work)
and doing the extra step of getting the term object manually, so I think
we're probably done.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29839#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list