WordPress.org

Make WordPress Core

Changeset 48068


Ignore:
Timestamp:
06/16/2020 09:22:09 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Docs: List the expected return type first for size_format() and wp_get_original_referer().

Follow-up to [46696], [47060].

See #49572.

File:
1 edited

Legend:

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

    r48065 r48068  
    447447 * @param int|string $bytes    Number of bytes. Note max integer size for integers.
    448448 * @param int        $decimals Optional. Precision of number of decimal places. Default 0.
    449  * @return string|false False on failure. Number string on success.
     449 * @return string|false Number string on success, false on failure.
    450450 */
    451451function size_format( $bytes, $decimals = 0 ) {
     
    19291929 * @since 2.0.4
    19301930 *
    1931  * @return string|false False if no original referer or original referer if set.
     1931 * @return string|false Original referer URL on success, false on failure.
    19321932 */
    19331933function wp_get_original_referer() {
     
    19351935        return wp_validate_redirect( wp_unslash( $_REQUEST['_wp_original_http_referer'] ), false );
    19361936    }
     1937
    19371938    return false;
    19381939}
Note: See TracChangeset for help on using the changeset viewer.