Opened 11 years ago
Closed 11 years ago
#31526 closed defect (bug) (fixed)
Correct PHPDoc description for get_terms()::$args['number']
| Reported by: | iandunn | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Taxonomy | Version: | 4.1 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
The documentation says that -1 will return all terms, and that -1 is the default, but the default is actually an empty string, which gets converted to 0.
Passing 0 returns all terms, but -1 gets converted to 1, leading to unexpected results.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi Ian,
Thanks for the patch. I'll take a look and get this fixed.
Introduced in [29128].