[wp-trac] [WordPress Trac] #31526: Correct PHPDoc description for get_terms()::$args['number']
WordPress Trac
noreply at wordpress.org
Thu Mar 5 00:17:37 UTC 2015
#31526: Correct PHPDoc description for get_terms()::$args['number']
--------------------------+-----------------------------
Reporter: iandunn | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Keywords:
Focuses: docs |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31526>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list