Make WordPress Core

Changeset 60642


Ignore:
Timestamp:
08/16/2025 09:51:16 PM (4 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r60259 r60642  
    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 ) ),
Note: See TracChangeset for help on using the changeset viewer.