From 353c9bfc5899c6338d1eb2448ce4f961e48be611 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 16 Jun 2020 21:24:07 +0000 Subject: [PATCH] Docs: List the expected return type first for `size_format()` and `wp_get_original_referer()`. Follow-up to [46696], [47060]. See #49572. Built from https://develop.svn.wordpress.org/trunk@48068 git-svn-id: http://core.svn.wordpress.org/trunk@47835 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 022caadb16..27edc32205 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -446,7 +446,7 @@ function number_format_i18n( $number, $decimals = 0 ) { * * @param int|string $bytes Number of bytes. Note max integer size for integers. * @param int $decimals Optional. Precision of number of decimal places. Default 0. - * @return string|false False on failure. Number string on success. + * @return string|false Number string on success, false on failure. */ function size_format( $bytes, $decimals = 0 ) { $quant = array( @@ -1928,12 +1928,13 @@ function wp_get_raw_referer() { * * @since 2.0.4 * - * @return string|false False if no original referer or original referer if set. + * @return string|false Original referer URL on success, false on failure. */ function wp_get_original_referer() { if ( ! empty( $_REQUEST['_wp_original_http_referer'] ) && function_exists( 'wp_validate_redirect' ) ) { return wp_validate_redirect( wp_unslash( $_REQUEST['_wp_original_http_referer'] ), false ); } + return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1099873c8b..0149a32b92 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48067'; +$wp_version = '5.5-alpha-48068'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.