Make WordPress Core

Changeset 54190

Timestamp:
09/16/2022 10:37:48 PM (23 months ago)
Author:
audrasjb
Message:

Docs: Update wp_rand docblock to clarify that it returns a non-negative number.

Props hakre, westi, jeremyfelt, neychok, sabernhardt, audrasjb.
Fixes #15089.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r53900 r54190  
    26132613if ( ! function_exists( 'wp_rand' ) ) :
    26142614    /**
    2615      * Generates a random number.
     2615     * Generates a random number.
    26162616     *
    26172617     * @since 2.6.2
     
    26252625     * @param int $max Optional. Upper limit for the generated number.
    26262626     *                 Accepts positive integers. Defaults to 4294967295.
    2627      * @return int A random number between min and max.
     2627     * @return int A random number between min and max.
    26282628     */
    26292629    function wp_rand( $min = null, $max = null ) {
Note: See TracChangeset for help on using the changeset viewer.