Proper translation of '<time> ago' in revisions. props johnbillion, fixes #24721.

git-svn-id: https://develop.svn.wordpress.org/trunk@24643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-07-10 16:15:18 +00:00
parent 49596ff2c1
commit e01a1a94bb
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -91,7 +91,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 ),
'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $current ) ),
'autosave' => wp_is_post_autosave( $revision ),
'current' => $revision->post_modified_gmt === $post->post_modified_gmt,
'restoreUrl' => urldecode( $restore_link ),