From 0754890f0e7727f64cb5e28e8aba1e28a0f07194 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 17 Feb 2025 13:11:05 +0000 Subject: [PATCH] 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 --- src/wp-includes/general-template.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 46d023acb3..e4e551ba41 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2525,8 +2525,8 @@ function the_date_xml() { * i.e. Only one date listing will show per day worth of posts shown in the loop, even if the * function is called several times for each post. * - * HTML output can be filtered with 'the_date'. - * Date string output can be filtered with 'get_the_date'. + * HTML output can be filtered with {@see 'the_date'}. + * Date string output can be filtered with {@see 'get_the_date'}. * * @since 0.71 * @@ -2596,9 +2596,9 @@ function get_the_date( $format = '', $post = null ) { * * @since 3.0.0 * - * @param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. - * @param string $format PHP date format. - * @param WP_Post $post The post object. + * @param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. + * @param string $format PHP date format. + * @param WP_Post $post The post object. */ return apply_filters( 'get_the_date', $the_date, $format, $post ); } @@ -2721,10 +2721,10 @@ function get_the_time( $format = '', $post = null ) { * * @since 1.5.0 * - * @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. - * @param string $format Format to use for retrieving the time the post - * was written. Accepts 'G', 'U', or PHP date format. - * @param WP_Post $post Post object. + * @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. + * @param string $format Format to use for retrieving the time the post + * was written. Accepts 'G', 'U', or PHP date format. + * @param WP_Post $post Post object. */ return apply_filters( 'get_the_time', $the_time, $format, $post ); }