Make WordPress Core

Changeset 34240


Ignore:
Timestamp:
09/16/2015 03:28:12 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Docs: Synchronize the $timezone parameter description between get_lastpostdate(), get_lastpostmodified(), and _get_last_post_time().

See #17455.

File:
1 edited

Legend:

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

    r34215 r34240  
    52335233 * @since 4.4.0 The `$post_type` argument was added.
    52345234 *
    5235  * @param string $timezone  Optional. The location to get the time. Accepts 'gmt', 'blog',
    5236  *                          or 'server'. Default 'server'.
     5235 * @param string $timezone  Optional. The timezone for the timestamp. Accepts 'server', 'blog', or 'gmt'.
     5236 *                          'server' uses the server's internal timezone.
     5237 *                          'blog' uses the `post_modified` field, which proxies to the timezone set for the site.
     5238 *                          'gmt' uses the `post_modified_gmt` field.
     5239 *                          Default 'server'.
    52375240 * @param string $post_type Optional. The post type to check. Default 'any'.
    52385241 * @return string The date of the last post.
     
    52445247     * @since 2.3.0
    52455248     *
    5246      * @param string $date     Date the last post was published. Likely values are 'gmt',
    5247      *                         'blog', or 'server'.
     5249     * @param string $date     Date the last post was published.
    52485250     * @param string $timezone Location to use for getting the post published date.
     5251     *                         See {@see get_lastpostdate()} for accepted `$timezone` values.
    52495252     */
    52505253    return apply_filters( 'get_lastpostdate', _get_last_post_time( $timezone, 'date', $post_type ), $timezone );
     
    52615264 * @since 4.4.0 The `$post_type` argument was added.
    52625265 *
    5263  * @param string $timezone  Optional. The timezone for the timestamp. Uses the server's internal timezone.
    5264  *                          Accepts 'server', 'blog', 'gmt'. or 'server'. 'server' uses the server's
    5265  *                          internal timezone. 'blog' uses the `post_modified` field, which proxies
    5266  *                          to the timezone set for the site. 'gmt' uses the `post_modified_gmt` field.
     5266 * @param string $timezone  Optional. The timezone for the timestamp. See {@see get_lastpostdate()}
     5267 *                          for information on accepted values.
    52675268 *                          Default 'server'.
    52685269 * @param string $post_type Optional. The post type to check. Default 'any'.
     
    52845285     * @param string $lastpostmodified Date the last post was modified.
    52855286     * @param string $timezone         Location to use for getting the post modified date.
    5286      *                                 See {@see get_lastpostmodified()} for accepted `$timezone` values.
     5287     *                                 See {@see get_lastpostdate()} for accepted `$timezone` values.
    52875288     */
    52885289    return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone );
     
    52985299 * @global wpdb $wpdb
    52995300 *
    5300  * @param string $timezone  The timezone for the timestamp. See {@see get_lastpostmodified()}
     5301 * @param string $timezone  The timezone for the timestamp. See {@see get_lastpostdate()}
    53015302 *                          for information on accepted values.
    53025303 * @param string $field     Post field to check. Accepts 'date' or 'modified'.
Note: See TracChangeset for help on using the changeset viewer.