Improve "Continue reading" word order for i18n

Resolves translation word order issue for some locales when the screen reader only text is invisible.
Fixes #1088
This commit is contained in:
Naoko Takano (McCracken) 2017-06-12 16:08:10 +09:00 committed by GitHub
parent 59b66c7dd5
commit ef2a0e7c00
1 changed files with 3 additions and 3 deletions

View File

@ -30,15 +30,15 @@
<?php
the_content( sprintf(
wp_kses(
/* translators: %s: Name of current post. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', '_s' ),
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
get_the_title()
) );
wp_link_pages( array(