[wp-trac] [WordPress Trac] #31526: Correct PHPDoc description for get_terms()::$args['number']
WordPress Trac
noreply at wordpress.org
Fri Mar 6 08:04:35 UTC 2015
#31526: Correct PHPDoc description for get_terms()::$args['number']
--------------------------+---------------------------
Reporter: iandunn | Owner: DrewAPicture
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Taxonomy | Version: 4.1
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+---------------------------
Changes (by DrewAPicture):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"31638"]:
{{{
#!CommitTicketReference repository="" revision="31638"
Correct the `$number` argument description in `get_terms()` to reflect
that an empty string or 0 will return all possible results, not -1.
Previously, it was noted that -1 would return all possible results.
However, as the value of `$number` is passed through `absint()`, -1 would
actually be converted to 1, thereby producing unexpected results.
Props iandunn.
Fixes #31526.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31526#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list