WordPress.org

Make WordPress Core

Changeset 41910


Ignore:
Timestamp:
10/18/2017 05:30:35 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove <b> tag from a translatable string in post_submit_meta_box().

Props ramiy.
Fixes #41681.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r41887 r41910  
    334334
    335335<div id="misc-publishing-actions">
    336     <?php
    337     /* translators: Publish box date format, see https://secure.php.net/date */
    338     $datef = __( 'M j, Y @ H:i' );
    339     /* translators: Attachment information. 1: Date the attachment was uploaded */
    340     $stamp = __('Uploaded on: <b>%1$s</b>');
    341     $date = date_i18n( $datef, strtotime( $post->post_date ) );
    342     ?>
    343336    <div class="misc-pub-section curtime misc-pub-curtime">
    344         <span id="timestamp"><?php printf($stamp, $date); ?></span>
     337        <span id="timestamp"><?php
     338            $date = date_i18n(
     339                /* translators: Publish box date format, see https://secure.php.net/date */
     340                __( 'M j, Y @ H:i' ),
     341                strtotime( $post->post_date )
     342            );
     343            printf(
     344                /* translators: Attachment information. %s: Date the attachment was uploaded */
     345                __( 'Uploaded on: %s' ),
     346                '<b>' . $date . '</b>'
     347            );
     348        ?></span>
    345349    </div><!-- .misc-pub-section -->
    346350
Note: See TracChangeset for help on using the changeset viewer.