[wp-trac] [WordPress Trac] #17365: get_terms doesn't return terms with no posts if you specify a parent
WordPress Trac
noreply at wordpress.org
Sun Aug 11 23:59:19 UTC 2013
#17365: get_terms doesn't return terms with no posts if you specify a parent
--------------------------+------------------------------
Reporter: mark8barnes | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.1.2
Severity: normal | Resolution: worksforme
Keywords: close |
--------------------------+------------------------------
Changes (by c3mdigital):
* keywords: => close
* status: new => closed
* resolution: => worksforme
Comment:
mark8barnes,
In your example you are setting `'parent' => 0` When you set parent to 0
no child terms should be returned. If you set parent to the parent terms
term_id even though it is empty you will still get the child terms.
I'm closing. If you still think this is a bug please re open with
additional information to support.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17365#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list