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(); ?> |
27 | 27 | <div class="entry-meta"> |
28 | 28 | <?php |
29 | 29 | /* 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>'; |
31 | 32 | $post_title = get_the_title( $post->post_parent ); |
32 | 33 | if ( empty( $post_title ) || 0 == $post->post_parent ) { |
33 | 34 | $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>'; |