Make WordPress Core

Changeset 59829


Ignore:
Timestamp:
02/17/2025 01:11:05 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct formatting for get_the_date and get_the_time DocBlocks.

Follow-up to [53000].

See #62281.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r59774 r59829  
    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
     
    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 );
     
    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 );
Note: See TracChangeset for help on using the changeset viewer.