WordPress.org

Make WordPress Core

Ticket #47992: 47992.diff

File 47992.diff, 1.3 KB (added by audrasjb, 6 months ago)

Replaces @ with 'at' in edit attachment publish box

  • src/wp-admin/includes/meta-boxes.php

    diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php
    index cff73e11f2..52aaac078d 100644
    a b function attachment_submit_meta_box( $post ) { 
    363363<div id="misc-publishing-actions">
    364364        <div class="misc-pub-section curtime misc-pub-curtime">
    365365                <span id="timestamp">
    366                 <?php
    367                         $date = date_i18n(
    368                                 /* translators: Publish box date format, see https://secure.php.net/date */
    369                                 __( 'M j, Y @ H:i' ),
    370                                 strtotime( $post->post_date )
     366                        <?php
     367                        $uploaded_on = sprintf(
     368                                /* translators: 1: comment date, 2: comment time */
     369                                __( '%1$s at %2$s' ),
     370                                date_i18n( _x( 'M j, Y', 'edit attachment uploaded-on date format. See https://secure.php.net/date' ), strtotime( $post->post_date ) ),
     371                                date_i18n( _x( 'H:i', 'edit attachment submitted-on time format. See https://secure.php.net/date' ), strtotime( $post->post_date ) )
    371372                        );
    372373                        printf(
    373                                 /* translators: Attachment information. %s: Date the attachment was uploaded. */
     374                                /* translators: Attachment information. %s: Date the attachment was uploaded */
    374375                                __( 'Uploaded on: %s' ),
    375                                 '<b>' . $date . '</b>'
     376                                '<b>' . $uploaded_on . '</b>'
    376377                        );
    377                 ?>
     378                        ?>
    378379                </span>
    379380        </div><!-- .misc-pub-section -->
    380381