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
This commit is contained in:
Sergey Biryukov 2020-06-16 21:24:07 +00:00
parent de59ad23a4
commit 353c9bfc58
2 changed files with 4 additions and 3 deletions

View File

@ -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|string $bytes Number of bytes. Note max integer size for integers.
* @param int $decimals Optional. Precision of number of decimal places. Default 0. * @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 ) { function size_format( $bytes, $decimals = 0 ) {
$quant = array( $quant = array(
@ -1928,12 +1928,13 @@ function wp_get_raw_referer() {
* *
* @since 2.0.4 * @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() { function wp_get_original_referer() {
if ( ! empty( $_REQUEST['_wp_original_http_referer'] ) && function_exists( 'wp_validate_redirect' ) ) { 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 wp_validate_redirect( wp_unslash( $_REQUEST['_wp_original_http_referer'] ), false );
} }
return false; return false;
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.