From 34c4ce3c810338e15fe0dfd09a17215bda11f6e4 Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 15 Jan 2019 02:08:49 +0000 Subject: [PATCH] Docs: Update inaccurate `return` descriptions. In the `@return` tag description for `get_post_modified_time()`, `get_the_time()`, and `get_post_time()`, the `$d` parameter is incorrectly referred to as `$id`. Props behzod. Fixes #45323. Built from https://develop.svn.wordpress.org/trunk@44592 git-svn-id: http://core.svn.wordpress.org/trunk@44423 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 861a4c84db..68b4e1beb6 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -2426,7 +2426,7 @@ function the_time( $d = '' ) { * was written. Either 'G', 'U', or php date format defaults * to the value specified in the time_format option. Default empty. * @param int|WP_Post $post WP_Post object or ID. Default is global $post object. - * @return string|int|false Formatted date string or Unix timestamp if `$id` is 'U' or 'G'. False on failure. + * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure. */ function get_the_time( $d = '', $post = null ) { $post = get_post( $post ); @@ -2465,7 +2465,7 @@ function get_the_time( $d = '', $post = null ) { * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. * @param int|WP_Post $post WP_Post object or ID. Default is global $post object. * @param bool $translate Whether to translate the time string. Default false. - * @return string|int|false Formatted date string or Unix timestamp if `$id` is 'U' or 'G'. False on failure. + * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure. */ function get_post_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { $post = get_post( $post ); @@ -2565,7 +2565,7 @@ function get_the_modified_time( $d = '', $post = null ) { * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. * @param int|WP_Post $post WP_Post object or ID. Default is global $post object. * @param bool $translate Whether to translate the time string. Default false. - * @return string|int|false Formatted date string or Unix timestamp if `$id` is 'U' or 'G'. False on failure. + * @return string|int|false Formatted date string or Unix timestamp if `$d` is 'U' or 'G'. False on failure. */ function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { $post = get_post( $post ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a0aca0a34c..204cbb15c6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44591'; +$wp_version = '5.1-beta1-44592'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.