WordPress.org

Make WordPress Core

Ticket #41681: 41681.patch

File 41681.patch, 1.1 KB (added by ramiy, 3 years ago)
  • wp-admin/includes/meta-boxes.php

     
    309309
    310310
    311311<div id="misc-publishing-actions">
    312         <?php
    313         /* translators: Publish box date format, see https://secure.php.net/date */
    314         $datef = __( 'M j, Y @ H:i' );
    315         /* translators: Attachment information. 1: Date the attachment was uploaded */
    316         $stamp = __('Uploaded on: <b>%1$s</b>');
    317         $date = date_i18n( $datef, strtotime( $post->post_date ) );
    318         ?>
    319312        <div class="misc-pub-section curtime misc-pub-curtime">
    320                 <span id="timestamp"><?php printf($stamp, $date); ?></span>
     313                <span id="timestamp"><?php
     314                        $date = date_i18n(
     315                                /* translators: Publish box date format, see https://secure.php.net/date */
     316                                __( 'M j, Y @ H:i' ),
     317                                strtotime( $post->post_date )
     318                        );
     319                        printf(
     320                                /* translators: Attachment information. %s: Date the attachment was uploaded */
     321                                __( 'Uploaded on: %s' ),
     322                                '<b>' . $date . '</b>'
     323                        );
     324                ?></span>
    321325        </div><!-- .misc-pub-section -->
    322326
    323327        <?php