Make WordPress Core

Ticket #30249: 30249.diff

File 30249.diff, 2.3 KB (added by ericlewis, 12 years ago)
  • src/wp-includes/post.php

    diff --git src/wp-includes/post.php src/wp-includes/post.php
    index f97318e..a4f3b15 100644
    function get_lastpostdate( $timezone = 'server' ) {  
    53255325}
    53265326
    53275327/**
    5328  * Retrieve last post modified date depending on timezone.
     5328 * Get the timestamp of the last time any post was modified.
    53295329 *
    53305330 * The server timezone is the default and is the difference between GMT and
    53315331 * server time. The 'blog' value is just when the last post was modified. The
    … … function get_lastpostdate( $timezone = 'server' ) {  
    53335333 *
    53345334 * @since 1.2.0
    53355335 *
    5336  * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'.
    5337  *                         Default 'server'.
    5338  * @return string The date the post was last modified.
     5336 * @param string $timezone The timezone for the timestamp. Defaults to 'server', accepts 'server', 'blog', 'gmt'.
     5337 *                         'server' uses the server's internal timezone.
     5338 *                         'blog' uses the post_modified field, which proxies to the timezone set for the site.
     5339 *                         'gmt' uses the post_modified_gmt field.
     5340 * @return string The timestamp.
    53395341 */
    53405342function get_lastpostmodified( $timezone = 'server' ) {
    53415343        $lastpostmodified = _get_last_post_time( $timezone, 'modified' );
    … … function get_lastpostmodified( $timezone = 'server' ) {  
    53565358}
    53575359
    53585360/**
    5359  * Retrieve latest post date data based on timezone.
     5361 * Get the timestamp of the last time any post was modified or published.
    53605362 *
    53615363 * @access private
    53625364 * @since 3.1.0
    53635365 *
    5364  * @param string $timezone The location to get the time. Accepts 'gmt', 'blog', or 'server'.
    5365  * @param string $field Field to check. Can be 'date' or 'modified'.
    5366  * @return string The date.
     5366 * @param string $timezone The timezone for the timestamp. Defaults to 'server', accepts 'server', 'blog', 'gmt'.
     5367 *                         'server' uses the server's internal timezone.
     5368 *                         'blog' uses the post_modified field, which proxies to the timezone set for the site.
     5369 *                         'gmt' uses the post_modified_gmt field.
     5370 * @param string $field    Field to check. Accepts 'date' or 'modified'.
     5371 * @return string The timestamp.
    53675372 */
    53685373function _get_last_post_time( $timezone, $field ) {
    53695374        global $wpdb;