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(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
esc_html__( 'Edit %s', '_s' ),
|
||||
the_title( '<span class="screen-reader-text">"', '"</span>', false )
|
||||
/* 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() ) ) ),
|
||||
get_the_title()
|
||||
),
|
||||
'<span class="edit-link">',
|
||||
'</span>'
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
esc_html__( 'Edit %s', '_s' ),
|
||||
the_title( '<span class="screen-reader-text">"', '"</span>', false )
|
||||
/* 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() ) ) ),
|
||||
get_the_title()
|
||||
),
|
||||
'<span class="edit-link">',
|
||||
'</span>'
|
||||
|
|
Reference in New Issue