Make WordPress Core


Ignore:
Timestamp:
09/08/2019 11:23:26 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Posts, Post Types: 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 birgire, afercia, audrasjb, SergeyBiryukov.
Fixes #47832.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r45932 r46083  
    167167}
    168168
    169 /* translators: Publish box date format, see https://secure.php.net/date */
    170 $scheduled_date = date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) );
     169$scheduled_date = sprintf(
     170    /* translators: Publish box date string. 1: Date, 2: Time. */
     171    __( '%1$s at %2$s' ),
     172    /* translators: Publish box date format, see https://secure.php.net/date */
     173    date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
     174    /* translators: Publish box time format, see https://secure.php.net/date */
     175    date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
     176);
    171177
    172178$messages['post']       = array(
Note: See TracChangeset for help on using the changeset viewer.