Skip to content

Commit dd2d7ef

Browse files
Revisions: Add year to timestamp in revisions comparison interface.
This aims to make it easier to distinguish between revisions from different years. Follow-up to [23769], [23898], [24520]. Props kgagne, iamadisingh, abcd95, SergeyBiryukov. Fixes #63816. git-svn-id: https://develop.svn.wordpress.org/trunk@60642 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8c374a5 commit dd2d7ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/revision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
249249
'title' => get_the_title( $post->ID ),
250250
'author' => $authors[ $revision->post_author ],
251251
'date' => date_i18n( __( 'M j, Y @ H:i' ), $modified ),
252-
'dateShort' => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), $modified ),
252+
'dateShort' => date_i18n( _x( 'j M Y @ H:i', 'revision date short format' ), $modified ),
253253
/* translators: %s: Human-readable time difference. */
254254
'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ),
255255
'autosave' => $autosave,

0 commit comments

Comments
 (0)