Skip to content

Commit 0754890

Browse files
Docs: Correct formatting for get_the_date and get_the_time DocBlocks.
Follow-up to [53000]. See #62281. git-svn-id: https://develop.svn.wordpress.org/trunk@59829 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f444639 commit 0754890

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/wp-includes/general-template.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,8 +2525,8 @@ function the_date_xml() {
25252525
* i.e. Only one date listing will show per day worth of posts shown in the loop, even if the
25262526
* function is called several times for each post.
25272527
*
2528-
* HTML output can be filtered with 'the_date'.
2529-
* Date string output can be filtered with 'get_the_date'.
2528+
* HTML output can be filtered with {@see 'the_date'}.
2529+
* Date string output can be filtered with {@see 'get_the_date'}.
25302530
*
25312531
* @since 0.71
25322532
*
@@ -2596,9 +2596,9 @@ function get_the_date( $format = '', $post = null ) {
25962596
*
25972597
* @since 3.0.0
25982598
*
2599-
* @param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
2600-
* @param string $format PHP date format.
2601-
* @param WP_Post $post The post object.
2599+
* @param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
2600+
* @param string $format PHP date format.
2601+
* @param WP_Post $post The post object.
26022602
*/
26032603
return apply_filters( 'get_the_date', $the_date, $format, $post );
26042604
}
@@ -2721,10 +2721,10 @@ function get_the_time( $format = '', $post = null ) {
27212721
*
27222722
* @since 1.5.0
27232723
*
2724-
* @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
2725-
* @param string $format Format to use for retrieving the time the post
2726-
* was written. Accepts 'G', 'U', or PHP date format.
2727-
* @param WP_Post $post Post object.
2724+
* @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
2725+
* @param string $format Format to use for retrieving the time the post
2726+
* was written. Accepts 'G', 'U', or PHP date format.
2727+
* @param WP_Post $post Post object.
27282728
*/
27292729
return apply_filters( 'get_the_time', $the_time, $format, $post );
27302730
}

0 commit comments

Comments
 (0)