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