forked from mirror/_s
Make sure the translation of the post editing link doesn't break because of screen reader text
This commit is contained in:
parent
b330bbaba7
commit
b3287e9b58
|
@ -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>'
|
||||||
|
|
|
@ -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>'
|
||||||
|
|
Reference in New Issue