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. Built from https://develop.svn.wordpress.org/trunk@46085 git-svn-id: http://core.svn.wordpress.org/trunk@45897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
86a10090a0
commit
49b4cfc034
|
@ -380,18 +380,18 @@ function attachment_submit_meta_box( $post ) {
|
||||||
<div id="misc-publishing-actions">
|
<div id="misc-publishing-actions">
|
||||||
<div class="misc-pub-section curtime misc-pub-curtime">
|
<div class="misc-pub-section curtime misc-pub-curtime">
|
||||||
<span id="timestamp">
|
<span id="timestamp">
|
||||||
<?php
|
<?php
|
||||||
$date = date_i18n(
|
$uploaded_on = sprintf(
|
||||||
|
/* translators: Publish box date string. 1: Date, 2: Time. See https://secure.php.net/date */
|
||||||
|
__( '%1$s at %2$s' ),
|
||||||
/* translators: Publish box date format, see https://secure.php.net/date */
|
/* translators: Publish box date format, see https://secure.php.net/date */
|
||||||
__( 'M j, Y @ H:i' ),
|
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
|
||||||
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 ) )
|
||||||
);
|
);
|
||||||
printf(
|
/* translators: Attachment information. %s: Date the attachment was uploaded. */
|
||||||
/* translators: Attachment information. %s: Date the attachment was uploaded. */
|
printf( __( 'Uploaded on: %s' ), '<b>' . $uploaded_on . '</b>' );
|
||||||
__( 'Uploaded on: %s' ),
|
?>
|
||||||
'<b>' . $date . '</b>'
|
|
||||||
);
|
|
||||||
?>
|
|
||||||
</span>
|
</span>
|
||||||
</div><!-- .misc-pub-section -->
|
</div><!-- .misc-pub-section -->
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46084';
|
$wp_version = '5.3-alpha-46085';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue