WordPress.org

Make WordPress Core

Changeset 24663


Ignore:
Timestamp:
07/11/2013 08:57:47 PM (9 years ago)
Author:
nacin
Message:

Compare GMT to GMT. see #24425.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/revision.php

    r24643 r24663  
    6565    $post = get_post( $post );
    6666    $revisions = array();
    67     $current = current_time( 'timestamp' );
     67    $now_gmt = time();
    6868
    6969    $revisions = wp_get_post_revisions( $post->ID );
     
    9292            'dateShort'    => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified_gmt ),
    9393            'dateUnix'     => $modified_gmt,
    94             'timeAgo'      => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $current ) ),
     94            'timeAgo'      => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ),
    9595            'autosave'     => wp_is_post_autosave( $revision ),
    9696            'current'      => $revision->post_modified_gmt === $post->post_modified_gmt,
Note: See TracChangeset for help on using the changeset viewer.