Make WordPress Core


Ignore:
Timestamp:
09/08/2019 11:52:43 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Comments: 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 #47893.

File:
1 edited

Legend:

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

    r45932 r46084  
    104104<div class="misc-pub-section curtime misc-pub-curtime">
    105105<?php
    106 /* translators: Publish box date format, see https://secure.php.net/date */
    107 $datef = __( 'M j, Y @ H:i' );
     106$submitted = sprintf(
     107    /* translators: 1: Comment date, 2: Comment time. */
     108    __( '%1$s at %2$s' ),
     109    /* translators: Publish box date format, see https://secure.php.net/date */
     110    date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ),
     111    /* translators: Publish box time format, see https://secure.php.net/date */
     112    date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) )
     113);
    108114?>
    109115<span id="timestamp">
    110116<?php
    111 printf(
    112     /* translators: %s: Comment date. */
    113     __( 'Submitted on: %s' ),
    114     '<b>' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '</b>'
    115 );
     117/* translators: %s: Comment date. */
     118printf( __( 'Submitted on: %s' ), '<b>' . $submitted . '</b>' );
    116119?>
    117120</span>
Note: See TracChangeset for help on using the changeset viewer.