From 425b59c04893d13656849308f269c335df0ace49 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 15 Jan 2019 02:07:41 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@44592 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 861a4c84db..68b4e1beb6 100644 --- a/src/wp-includes/general-template.php +++ b/src/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 );