From 0fc515b00579eb43c558b59ab73ecb18583429da Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 Jan 2025 00:47:22 +0000 Subject: [PATCH] Docs: Correct description for `the_time()`, `get_the_time()`, and `get_post_time()`. This aims to avoid confusion with `the_date()` and `get_the_date()`. Includes synchronizing the description for `the_weekday()` and `the_weekday_date()`, which have very similar functionality, except that the latter will only output the weekday if the current post's weekday is different from the previous one output. Follow-up to [59691]. See #51289. Built from https://develop.svn.wordpress.org/trunk@59692 git-svn-id: http://core.svn.wordpress.org/trunk@59034 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 20 ++++++++++---------- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index c64508032a..4059716469 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -2672,7 +2672,7 @@ function get_the_modified_date( $format = '', $post = null ) { } /** - * Displays the date of the post. + * Displays the time of the post. * * @since 0.71 * @@ -2682,7 +2682,7 @@ function get_the_modified_date( $format = '', $post = null ) { */ function the_time( $format = '' ) { /** - * Filters the date of the post, for display. + * Filters the time of the post, for display. * * @since 0.71 * @@ -2694,7 +2694,7 @@ function the_time( $format = '' ) { } /** - * Retrieves the date of the post. + * Retrieves the time of the post. * * @since 1.5.0 * @@ -2717,7 +2717,7 @@ function get_the_time( $format = '', $post = null ) { $the_time = get_post_time( $_format, false, $post, true ); /** - * Filters the date of the post. + * Filters the time of the post. * * @since 1.5.0 * @@ -2730,7 +2730,7 @@ function get_the_time( $format = '', $post = null ) { } /** - * Retrieves the localized date of the post. + * Retrieves the localized time of the post. * * @since 2.0.0 * @@ -2774,7 +2774,7 @@ function get_post_time( $format = 'U', $gmt = false, $post = null, $translate = } /** - * Filters the localized date of the post. + * Filters the localized time of the post. * * @since 2.6.0 * @@ -2976,7 +2976,7 @@ function get_post_modified_time( $format = 'U', $gmt = false, $post = null, $tra } /** - * Displays the weekday for the post. + * Displays the localized weekday for the post. * * @since 0.71 * @@ -2994,7 +2994,7 @@ function the_weekday() { $the_weekday = $wp_locale->get_weekday( get_post_time( 'w', false, $post ) ); /** - * Filters the weekday of the post, for display. + * Filters the localized weekday of the post, for display. * * @since 0.71 * @@ -3004,7 +3004,7 @@ function the_weekday() { } /** - * Displays the localized weekday date for the post + * Displays the localized weekday for the post. * * Will only output the weekday if the current post's weekday is different from * the previous one output. @@ -3037,7 +3037,7 @@ function the_weekday_date( $before = '', $after = '' ) { } /** - * Filters the localized weekday date of the post, for display. + * Filters the localized weekday of the post, for display. * * @since 0.71 * diff --git a/wp-includes/version.php b/wp-includes/version.php index e83045de2a..f61d6bca48 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59691'; +$wp_version = '6.8-alpha-59692'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.