[wp-trac] [WordPress Trac] #15089: wp_rand() can be asked for negative numbers but will never return them
WordPress Trac
noreply at wordpress.org
Fri Sep 16 22:38:04 UTC 2022
#15089: wp_rand() can be asked for negative numbers but will never return them
---------------------------------------------+-----------------------
Reporter: hakre | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: lowest | Milestone: 6.1
Component: General | Version: 2.6
Severity: minor | Resolution: fixed
Keywords: good-first-bug has-patch commit | Focuses: docs
---------------------------------------------+-----------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"54190" 54190]:
{{{
#!CommitTicketReference repository="" revision="54190"
Docs: Update `wp_rand` docblock to clarify that it returns a non-negative
number.
Props hakre, westi, jeremyfelt, neychok, sabernhardt, audrasjb.
Fixes #15089.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15089#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list