Make WordPress Core

Changeset 51554


Ignore:
Timestamp:
08/05/2021 02:35:09 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Twenty Thirteen: Remove wrapping HTML tag from translatable string.

This fixes a "Strings should not be wrapped in HTML" WPCS warning.

Props jrf.
See #53359.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentythirteen/image.php

    r49539 r51554  
    2828                    <?php
    2929                    /* translators: 1: Date, 2: Date, 3, Parent permalink, 4, Post title, 5: Post title. */
    30                     $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Go to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
     30                    $published_text = __( 'Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Go to %4$s" rel="gallery">%5$s</a>', 'twentythirteen' );
     31                    $published_text = '<span class="attachment-meta">' . $published_text . '</span>';
    3132                    $post_title     = get_the_title( $post->post_parent );
    3233                    if ( empty( $post_title ) || 0 == $post->post_parent ) {
Note: See TracChangeset for help on using the changeset viewer.