WordPress.org

Make WordPress Core

Changeset 46085


Ignore:
Timestamp:
09/09/2019 12:06:29 AM (12 days ago)
Author:
SergeyBiryukov
Message:

Accessibility: Media: Replace @ with at in the displayed date format.

The @ symbol makes sense in the context of email addresses, but does not have a universal meaning in the context of dates.

Props audrasjb, afercia.
Fixes #47893.

File:
1 edited

Legend:

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

    r46083 r46085  
    381381    <div class="misc-pub-section curtime misc-pub-curtime">
    382382        <span id="timestamp">
    383         <?php
    384             $date = date_i18n(
     383            <?php
     384            $uploaded_on = sprintf(
     385                /* translators: Publish box date string. 1: Date, 2: Time. See https://secure.php.net/date */
     386                __( '%1$s at %2$s' ),
    385387                /* translators: Publish box date format, see https://secure.php.net/date */
    386                 __( 'M j, Y @ H:i' ),
    387                 strtotime( $post->post_date )
     388                date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
     389                /* translators: Publish box time format, see https://secure.php.net/date */
     390                date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
    388391            );
    389             printf(
    390                 /* translators: Attachment information. %s: Date the attachment was uploaded. */
    391                 __( 'Uploaded on: %s' ),
    392                 '<b>' . $date . '</b>'
    393             );
    394         ?>
     392            /* translators: Attachment information. %s: Date the attachment was uploaded. */
     393            printf( __( 'Uploaded on: %s' ), '<b>' . $uploaded_on . '</b>' );
     394            ?>
    395395        </span>
    396396    </div><!-- .misc-pub-section -->
Note: See TracChangeset for help on using the changeset viewer.