mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Pass back dateUnix (a unix timestamp) for better sorting of revisions in Backbone.
Props duck_. See #24425. git-svn-id: https://develop.svn.wordpress.org/trunk@24615 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -90,6 +90,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id ) {
|
||||
),
|
||||
'date' => date_i18n( __( 'M j, Y @ G:i' ), $modified_gmt ),
|
||||
'dateShort' => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), $modified_gmt ),
|
||||
'dateUnix' => $modified_gmt,
|
||||
'timeAgo' => human_time_diff( $modified_gmt, $current ),
|
||||
'autosave' => wp_is_post_autosave( $revision ),
|
||||
'current' => $revision->post_modified_gmt === $post->post_modified_gmt,
|
||||
|
||||
Reference in New Issue
Block a user