Make sure the translation of the post editing link doesn't break because of screen reader text

This commit is contained in:
Yoav Farh 2017-01-03 18:14:17 +02:00
parent b330bbaba7
commit b3287e9b58
2 changed files with 4 additions and 4 deletions

View File

@ -69,8 +69,8 @@ function _s_entry_footer() {
edit_post_link( edit_post_link(
sprintf( sprintf(
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
esc_html__( 'Edit %s', '_s' ), __( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
the_title( '<span class="screen-reader-text">"', '"</span>', false ) get_the_title()
), ),
'<span class="edit-link">', '<span class="edit-link">',
'</span>' '</span>'

View File

@ -31,8 +31,8 @@
edit_post_link( edit_post_link(
sprintf( sprintf(
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
esc_html__( 'Edit %s', '_s' ), __( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
the_title( '<span class="screen-reader-text">"', '"</span>', false ) get_the_title()
), ),
'<span class="edit-link">', '<span class="edit-link">',
'</span>' '</span>'