Opened 15 years ago
Closed 15 years ago
#9960 closed defect (bug) (fixed)
get_terms() fails to work with parent=0
Reported by: | Denis-de-Bernardy | Owned by: | filosofo |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | major | Version: | 2.8 |
Component: | Taxonomy | Keywords: | has-patch tested dev-feedback |
Focuses: | Cc: |
Description
It then returns all terms.
Attachments (1)
Change History (5)
#2
@
15 years ago
- Keywords has-patch tested dev-feedback added
Attached patch makes it work as expected, and I found no trace of the argument getting used in WP. It might have some minor side effects on plugins.
Please give early feedback, so I whether I should seek a workaround for my plugin.
#3
in reply to:
↑ 1
@
15 years ago
Replying to filosofo:
I can't reproduce this on trunk. When I query
get_terms('category','parent=0');
it returns all categories at the top of the hierarchy. In other words, those without parents, which is the expected behavior.
It what I thought too, until I added a post in the empty subcat I created to verify.
Note: See
TracTickets for help on using
tickets.
I can't reproduce this on trunk. When I query
get_terms('category','parent=0');
it returns all categories at the top of the hierarchy. In other words, those without parents, which is the expected behavior.