Removing duplicate entry in the translation file. Switching the translation function for single post navigation to esc_html__

This commit is contained in:
alaczek 2018-05-29 11:57:18 +10:00
parent 142e2d5030
commit 8878f1ad7d
2 changed files with 2 additions and 10 deletions

View File

@ -83,14 +83,6 @@ msgstr ""
msgid "Next:" msgid "Next:"
msgstr "" msgstr ""
#. translators: %s: post date.
#: inc/template-tags.php:29
#, php-format
#@ _s
msgctxt "post date"
msgid "Posted on %s"
msgstr ""
#: inc/template-tags.php:52 #: inc/template-tags.php:52
#. translators: used between list items, there is a space after the comma #. translators: used between list items, there is a space after the comma
msgid ", " msgid ", "

View File

@ -18,8 +18,8 @@ get_header(); ?>
get_template_part( 'template-parts/content', get_post_type() ); get_template_part( 'template-parts/content', get_post_type() );
the_post_navigation( array( the_post_navigation( array(
'prev_text' => '<span class="nav-subtitle">' . __( 'Previous:', '_s' ) . '</span> <span class="nav-title">%title</span>', 'prev_text' => '<span class="nav-subtitle">' . esc_html__( 'Previous:', '_s' ) . '</span> <span class="nav-title">%title</span>',
'next_text' => '<span class="nav-subtitle">' . __( 'Next:', '_s' ) . '</span> <span class="nav-title">%title</span>', 'next_text' => '<span class="nav-subtitle">' . esc_html__( 'Next:', '_s' ) . '</span> <span class="nav-title">%title</span>',
) ); ) );
// If comments are open or we have at least one comment, load up the comment template. // If comments are open or we have at least one comment, load up the comment template.