mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Docs: Fix typo in a comment in wp_rand().
Props boluda. Fixes #35228. git-svn-id: https://develop.svn.wordpress.org/trunk@36102 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2191,7 +2191,7 @@ function wp_rand( $min = 0, $max = 0 ) {
|
||||
if ( $use_random_int_functionality ) {
|
||||
try {
|
||||
$_max = ( 0 != $max ) ? $max : $max_random_number;
|
||||
// wp_rand() can accept arguements in either order, PHP cannot.
|
||||
// wp_rand() can accept arguments in either order, PHP cannot.
|
||||
$_max = max( $min, $_max );
|
||||
$_min = min( $min, $_max );
|
||||
$val = random_int( $_min, $_max );
|
||||
|
||||
Reference in New Issue
Block a user