From a6579d47156efd6ce50f19de7c49113a54b962bc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 May 2019 00:40:08 +0000 Subject: [PATCH] Docs: Adjust `get_post_modified_time` filter DocBlock for consistency with `get_post_time`. See #47110. git-svn-id: https://develop.svn.wordpress.org/trunk@45380 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index be46abad25..1cb071bcc5 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2658,6 +2658,7 @@ function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translat } else { $time = $post->post_modified; } + $time = mysql2date( $d, $time, $translate ); /** @@ -2666,8 +2667,9 @@ function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translat * @since 2.8.0 * * @param string $time The formatted time. - * @param string $d The date format. Accepts 'G', 'U', or php date format. Default 'U'. - * @param bool $gmt Whether to return the GMT time. Default false. + * @param string $d Format to use for retrieving the time the post was modified. + * Accepts 'G', 'U', or php date format. Default 'U'. + * @param bool $gmt Whether to retrieve the GMT time. Default false. */ return apply_filters( 'get_post_modified_time', $time, $d, $gmt ); }