Fix build errors related to #1066

Tweak #1066 to fix build errors

Adjust location of placeholder text
This commit is contained in:
David A. Kennedy 2017-06-09 16:10:50 -04:00
parent 3aa7934d56
commit 1e9b0c686e
2 changed files with 18 additions and 4 deletions

View File

@ -84,8 +84,15 @@ function _s_entry_footer() {
edit_post_link( edit_post_link(
sprintf( sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */ /* translators: %s: Name of current post. Only visible to screen readers */
wp_kses( __( 'Edit <span class="screen-reader-text">%s</span>', '_s' ), array( 'span' => array( 'class' => array() ) ) ), __( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title() get_the_title()
), ),
'<span class="edit-link">', '<span class="edit-link">',

View File

@ -30,8 +30,15 @@
<?php <?php
edit_post_link( edit_post_link(
sprintf( sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */ /* translators: %s: Name of current post. Only visible to screen readers */
wp_kses( __( 'Edit <span class="screen-reader-text">%s</span>', '_s' ), array( 'span' => array( 'class' => array() ) ) ), __( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title() get_the_title()
), ),
'<span class="edit-link">', '<span class="edit-link">',