Make WordPress Core


Ignore:
Timestamp:
07/27/2020 11:15:44 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Synchronize documentation for get_lastpostdate() and get_lastpostmodified().

See #49572.

File:
1 edited

Legend:

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

    r48631 r48634  
    66066606 *
    66076607 * The server timezone is the default and is the difference between GMT and
    6608  * server time. The 'blog' value is the date when the last post was posted. The
    6609  * 'gmt' is when the last post was posted in GMT formatted date.
     6608 * server time. The 'blog' value is the date when the last post was posted.
     6609 * The 'gmt' is when the last post was posted in GMT formatted date.
    66106610 *
    66116611 * @since 0.71
     
    66216621 */
    66226622function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) {
    6623     $date = _get_last_post_time( $timezone, 'date', $post_type );
     6623    $lastpostdate = _get_last_post_time( $timezone, 'date', $post_type );
    66246624
    66256625    /**
     
    66296629     * @since 5.5.0 Added the `$post_type` parameter.
    66306630     *
    6631      * @param string|false $date      Date the last post was published. False on failure.
    6632      * @param string       $timezone  Location to use for getting the post published date.
    6633      *                                See get_lastpostdate() for accepted `$timezone` values.
    6634      * @param string       $post_type The post type to check.
     6631     * @param string|false $lastpostdate The most recent time that a post was published,
     6632     *                                   in 'Y-m-d H:i:s' format. False on failure.
     6633     * @param string       $timezone     Location to use for getting the post published date.
     6634     *                                   See get_lastpostdate() for accepted `$timezone` values.
     6635     * @param string       $post_type    The post type to check.
    66356636     */
    66366637    return apply_filters( 'get_lastpostdate', $date, $timezone, $post_type );
     
    66416642 *
    66426643 * The server timezone is the default and is the difference between GMT and
    6643  * server time. The 'blog' value is just when the last post was modified. The
    6644  * 'gmt' is when the last post was modified in GMT time.
     6644 * server time. The 'blog' value is just when the last post was modified.
     6645 * The 'gmt' is when the last post was modified in GMT time.
    66456646 *
    66466647 * @since 1.2.0
     
    66596660     * @since 4.4.0
    66606661     *
    6661      * @param string|false $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format, or
    6662      *                                       false. Returning anything other than false will short-circuit the function.
     6662     * @param string|false $lastpostmodified The most recent time that a post was modified,
     6663     *                                       in 'Y-m-d H:i:s' format, or false. Returning anything
     6664     *                                       other than false will short-circuit the function.
    66636665     * @param string       $timezone         Location to use for getting the post modified date.
    66646666     *                                       See get_lastpostdate() for accepted `$timezone` values.
     
    66796681
    66806682    /**
    6681      * Filters the most recent time that a post was modified.
     6683     * Filters the most recent time that a post on the site was modified.
    66826684     *
    66836685     * @since 2.3.0
    66846686     * @since 5.5.0 Added the `$post_type` parameter.
    66856687     *
    6686      * @param string|false $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format.
    6687      *                                       False on failure.
     6688     * @param string|false $lastpostmodified The most recent time that a post was modified,
     6689     *                                       in 'Y-m-d H:i:s' format. False on failure.
    66886690     * @param string       $timezone         Location to use for getting the post modified date.
    66896691     *                                       See get_lastpostdate() for accepted `$timezone` values.
Note: See TracChangeset for help on using the changeset viewer.