From 0cc6547e4395355b170d6b555f2c499d823f4c94 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 May 2019 00:41:51 +0000 Subject: [PATCH] Docs: Adjust `get_post_modified_time` filter DocBlock for consistency with `get_post_time`. See #47110. Built from https://develop.svn.wordpress.org/trunk@45380 git-svn-id: http://core.svn.wordpress.org/trunk@45191 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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.