Opened 17 years ago
Closed 17 years ago
#9960 closed defect (bug) (fixed)
get_terms() fails to work with parent=0
| Reported by: | Denis-de-Bernardy | Owned by: | filosofo |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Taxonomy | Version: | 2.8 |
| Severity: | major | Keywords: | has-patch tested dev-feedback |
| Cc: | Focuses: |
Description
It then returns all terms.
Attachments (1)
Change History (5)
#2
@
17 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
@
17 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.
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.