Make WordPress Core


Ignore:
Timestamp:
07/09/2013 07:21:25 PM (12 years ago)
Author:
markjaquith
Message:

Pass back dateUnix (a unix timestamp) for better sorting of revisions in Backbone.

Props duck_. See #24425.

File:
1 edited

Legend:

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

    r24611 r24615  
    9191            'date'         => date_i18n( __( 'M j, Y @ G:i' ), $modified_gmt ),
    9292            'dateShort'    => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified_gmt ),
     93            'dateUnix'     => $modified_gmt,
    9394            'timeAgo'      => human_time_diff( $modified_gmt, $current ),
    9495            'autosave'     => wp_is_post_autosave( $revision ),
Note: See TracChangeset for help on using the changeset viewer.