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:
parent
0ce64dd122
commit
5502d59fb9
@ -2191,7 +2191,7 @@ function wp_rand( $min = 0, $max = 0 ) {
|
|||||||
if ( $use_random_int_functionality ) {
|
if ( $use_random_int_functionality ) {
|
||||||
try {
|
try {
|
||||||
$_max = ( 0 != $max ) ? $max : $max_random_number;
|
$_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 );
|
$_max = max( $min, $_max );
|
||||||
$_min = min( $min, $_max );
|
$_min = min( $min, $_max );
|
||||||
$val = random_int( $_min, $_max );
|
$val = random_int( $_min, $_max );
|
||||||
|
Loading…
Reference in New Issue
Block a user