Make WordPress Core

Changeset 30287


Ignore:
Timestamp:
11/08/2014 09:07:46 PM (10 years ago)
Author:
DrewAPicture
Message:

Fix incorrect documentation in the DocBlocks for get_lastpostmodified() and _get_last_post_time().

Props ericlewis for the initial patch.
Fixes #30249.

File:
1 edited

Legend:

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

    r30284 r30287  
    53285328
    53295329/**
    5330  * Retrieve last post modified date depending on timezone.
     5330 * Get the timestamp of the last time any post was modified.
    53315331 *
    53325332 * The server timezone is the default and is the difference between GMT and
     
    53365336 * @since 1.2.0
    53375337 *
    5338  * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'.
     5338 * @param string $timezone Optional. The timezone for the timestamp. Uses the server's internal timezone.
     5339 *                         Accepts 'server', 'blog', 'gmt'. or 'server'. 'server' uses the server's
     5340 *                         internal timezone. 'blog' uses the `post_modified` field, which proxies
     5341 *                         to the timezone set for the site. 'gmt' uses the `post_modified_gmt` field.
    53395342 *                         Default 'server'.
    5340  * @return string The date the post was last modified.
     5343 * @return string The timestamp.
    53415344 */
    53425345function get_lastpostmodified( $timezone = 'server' ) {
     
    53545357     * @param string $lastpostmodified Date the last post was modified.
    53555358     * @param string $timezone         Location to use for getting the post modified date.
     5359     *                                 See {@see get_lastpostmodified()} for accepted `$timezone` values.
    53565360     */
    53575361    return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone );
     
    53595363
    53605364/**
    5361  * Retrieve latest post date data based on timezone.
    5362  *
     5365 * Get the timestamp of the last time any post was modified or published.
     5366 *
     5367 * @since 3.1.0
    53635368 * @access private
    5364  * @since 3.1.0
    5365  *
    5366  * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'.
    5367  * @param string $field Field to check. Can be 'date' or 'modified'.
    5368  * @return string The date.
     5369 *
     5370 * @param string $timezone The timezone for the timestamp. See {@see get_lastpostmodified()}
     5371 *                         for information on accepted values.
     5372 * @param string $field    Post field to check. Accepts 'date' or 'modified'.
     5373 * @return string The timestamp.
    53695374 */
    53705375function _get_last_post_time( $timezone, $field ) {
Note: See TracChangeset for help on using the changeset viewer.