Opened 11 years ago
Closed 11 years ago
#31526 closed defect (bug) (fixed)
Correct PHPDoc description for get_terms()::$args['number']
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.2 | Priority: | normal |
| Severity: | minor | Version: | 4.1 |
| Component: | Taxonomy | Keywords: | has-patch |
| Focuses: | docs | Cc: |
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.
Hi Ian,
Thanks for the patch. I'll take a look and get this fixed.
Introduced in [29128].