mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@46083 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -166,8 +166,14 @@ if ( $viewable ) {
|
||||
|
||||
}
|
||||
|
||||
/* translators: Publish box date format, see https://secure.php.net/date */
|
||||
$scheduled_date = date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) );
|
||||
$scheduled_date = sprintf(
|
||||
/* translators: Publish box date string. 1: Date, 2: Time. */
|
||||
__( '%1$s at %2$s' ),
|
||||
/* translators: Publish box date format, see https://secure.php.net/date */
|
||||
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
|
||||
/* translators: Publish box time format, see https://secure.php.net/date */
|
||||
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
|
||||
);
|
||||
|
||||
$messages['post'] = array(
|
||||
0 => '', // Unused. Messages start at index 1.
|
||||
|
||||
Reference in New Issue
Block a user