Make WordPress Core

Ticket #53359: 53359-5-CS-translatable-strings-should-not-be-wrapped-in-HTM.patch

File 53359-5-CS-translatable-strings-should-not-be-wrapped-in-HTM.patch, 1.5 KB (added by jrf, 3 years ago)
  • src/wp-content/themes/twentythirteen/image.php

    From 0cf5fb1c8463796aa4b239c2e52a813cf77da98f Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 20 Jul 2021 15:32:52 +0200
    Subject: [PATCH] CS: translatable strings should not be wrapped in HTML
    
    ---
     src/wp-content/themes/twentythirteen/image.php | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/src/wp-content/themes/twentythirteen/image.php b/src/wp-content/themes/twentythirteen/image.php
    index 7372018cb6..4332ee3ab5 100644
    a b get_header(); ?> 
    2727                                <div class="entry-meta">
    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 ) {
    3334                                                $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';