Skip to content

Commit 4a99183

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59692 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0cad216 commit 4a99183

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/wp-includes/general-template.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,7 +2672,7 @@ function get_the_modified_date( $format = '', $post = null ) {
26722672
}
26732673

26742674
/**
2675-
* Displays the date of the post.
2675+
* Displays the time of the post.
26762676
*
26772677
* @since 0.71
26782678
*
@@ -2682,7 +2682,7 @@ function get_the_modified_date( $format = '', $post = null ) {
26822682
*/
26832683
function the_time( $format = '' ) {
26842684
/**
2685-
* Filters the date of the post, for display.
2685+
* Filters the time of the post, for display.
26862686
*
26872687
* @since 0.71
26882688
*
@@ -2694,7 +2694,7 @@ function the_time( $format = '' ) {
26942694
}
26952695

26962696
/**
2697-
* Retrieves the date of the post.
2697+
* Retrieves the time of the post.
26982698
*
26992699
* @since 1.5.0
27002700
*
@@ -2717,7 +2717,7 @@ function get_the_time( $format = '', $post = null ) {
27172717
$the_time = get_post_time( $_format, false, $post, true );
27182718

27192719
/**
2720-
* Filters the date of the post.
2720+
* Filters the time of the post.
27212721
*
27222722
* @since 1.5.0
27232723
*
@@ -2730,7 +2730,7 @@ function get_the_time( $format = '', $post = null ) {
27302730
}
27312731

27322732
/**
2733-
* Retrieves the localized date of the post.
2733+
* Retrieves the localized time of the post.
27342734
*
27352735
* @since 2.0.0
27362736
*
@@ -2774,7 +2774,7 @@ function get_post_time( $format = 'U', $gmt = false, $post = null, $translate =
27742774
}
27752775

27762776
/**
2777-
* Filters the localized date of the post.
2777+
* Filters the localized time of the post.
27782778
*
27792779
* @since 2.6.0
27802780
*
@@ -2976,7 +2976,7 @@ function get_post_modified_time( $format = 'U', $gmt = false, $post = null, $tra
29762976
}
29772977

29782978
/**
2979-
* Displays the weekday for the post.
2979+
* Displays the localized weekday for the post.
29802980
*
29812981
* @since 0.71
29822982
*
@@ -2994,7 +2994,7 @@ function the_weekday() {
29942994
$the_weekday = $wp_locale->get_weekday( get_post_time( 'w', false, $post ) );
29952995

29962996
/**
2997-
* Filters the weekday of the post, for display.
2997+
* Filters the localized weekday of the post, for display.
29982998
*
29992999
* @since 0.71
30003000
*
@@ -3004,7 +3004,7 @@ function the_weekday() {
30043004
}
30053005

30063006
/**
3007-
* Displays the localized weekday date for the post
3007+
* Displays the localized weekday for the post.
30083008
*
30093009
* Will only output the weekday if the current post's weekday is different from
30103010
* the previous one output.
@@ -3037,7 +3037,7 @@ function the_weekday_date( $before = '', $after = '' ) {
30373037
}
30383038

30393039
/**
3040-
* Filters the localized weekday date of the post, for display.
3040+
* Filters the localized weekday of the post, for display.
30413041
*
30423042
* @since 0.71
30433043
*

0 commit comments

Comments
 (0)