Make WordPress Core

Changeset 59692


Ignore:
Timestamp:
01/23/2025 12:45:34 AM (5 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r59691 r59692  
    26732673
    26742674/**
    2675  * Displays the date of the post.
     2675 * Displays the time of the post.
    26762676 *
    26772677 * @since 0.71
     
    26832683function 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
     
    26952695
    26962696/**
    2697  * Retrieves the date of the post.
     2697 * Retrieves the time of the post.
    26982698 *
    26992699 * @since 1.5.0
     
    27182718
    27192719    /**
    2720      * Filters the date of the post.
     2720     * Filters the time of the post.
    27212721     *
    27222722     * @since 1.5.0
     
    27312731
    27322732/**
    2733  * Retrieves the localized date of the post.
     2733 * Retrieves the localized time of the post.
    27342734 *
    27352735 * @since 2.0.0
     
    27752775
    27762776    /**
    2777      * Filters the localized date of the post.
     2777     * Filters the localized time of the post.
    27782778     *
    27792779     * @since 2.6.0
     
    29772977
    29782978/**
    2979  * Displays the weekday for the post.
     2979 * Displays the localized weekday for the post.
    29802980 *
    29812981 * @since 0.71
     
    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
     
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.