diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index be46abad25..1cb071bcc5 100644 --- a/wp-includes/general-template.php +++ b/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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 507069b613..61ccfb1c9b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45379'; +$wp_version = '5.3-alpha-45380'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.