WordPress.org

Make WordPress Core

Ticket #26502: 26502.patch

File 26502.patch, 810 bytes (added by chriscct7, 4 years ago)

Refreshed the alt patch (johnbillion's suggestion)

  • src/wp-admin/includes/dashboard.php

     
    780780                                $relative = __( 'Today' );
    781781                        } elseif ( date( 'Y-m-d', $time ) == $tomorrow ) {
    782782                                $relative = __( 'Tomorrow' );
     783                        } elseif ( date( 'Y', $time ) !== date( 'Y', current_time( 'timestamp' ) ) ) {
     784                                /* translators: date and time format for recent posts on the dashboard, from a different calendar year, see http://php.net/date */
     785                                $relative = date_i18n( __( 'M jS Y' ), $time );
    783786                        } else {
    784787                                /* translators: date and time format for recent posts on the dashboard, see http://php.net/date */
    785788                                $relative = date_i18n( __( 'M jS' ), $time );