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. Built from https://develop.svn.wordpress.org/trunk@60642 git-svn-id: http://core.svn.wordpress.org/trunk@59978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -249,7 +249,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null
|
||||
'title' => get_the_title( $post->ID ),
|
||||
'author' => $authors[ $revision->post_author ],
|
||||
'date' => date_i18n( __( 'M j, Y @ H:i' ), $modified ),
|
||||
'dateShort' => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), $modified ),
|
||||
'dateShort' => date_i18n( _x( 'j M Y @ H:i', 'revision date short format' ), $modified ),
|
||||
/* translators: %s: Human-readable time difference. */
|
||||
'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ),
|
||||
'autosave' => $autosave,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-alpha-60641';
|
||||
$wp_version = '6.9-alpha-60642';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user