forked from mirror/_s
Merge pull request #1066 from yoavf/fix/edit-post-link-i18n
Prevent broken translations in some locales for the edit post link
This commit is contained in:
commit
3aa7934d56
|
@ -84,9 +84,9 @@ function _s_entry_footer() {
|
||||||
|
|
||||||
edit_post_link(
|
edit_post_link(
|
||||||
sprintf(
|
sprintf(
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||||
esc_html__( 'Edit %s', '_s' ),
|
wp_kses( __( 'Edit <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()
|
||||||
),
|
),
|
||||||
'<span class="edit-link">',
|
'<span class="edit-link">',
|
||||||
'</span>'
|
'</span>'
|
||||||
|
|
|
@ -30,9 +30,9 @@
|
||||||
<?php
|
<?php
|
||||||
edit_post_link(
|
edit_post_link(
|
||||||
sprintf(
|
sprintf(
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||||
esc_html__( 'Edit %s', '_s' ),
|
wp_kses( __( 'Edit <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()
|
||||||
),
|
),
|
||||||
'<span class="edit-link">',
|
'<span class="edit-link">',
|
||||||
'</span>'
|
'</span>'
|
||||||
|
|
Reference in New Issue