forked from mirror/_s
Add post title to `edit_post_link`
* Use `__()` instead of `_x()` * Add translator comment, remove context modifier. * Remove escaping on `the_title()`; it's trusted data. Resolves: #774
This commit is contained in:
parent
c60811bf94
commit
0a0e5c631f
|
@ -125,8 +125,9 @@ function _s_entry_footer() {
|
||||||
|
|
||||||
edit_post_link(
|
edit_post_link(
|
||||||
sprintf(
|
sprintf(
|
||||||
esc_html_x( 'Edit %s', 'name of current post', '_s' ),
|
/* translators: %s: Name of current post */
|
||||||
wp_kses( the_title( '<span class="screen-reader-text">"', '"</span>', false ), array( 'span' => array( 'class' => array() ) ) )
|
esc_html__( 'Edit %s', '_s' ),
|
||||||
|
the_title( '<span class="screen-reader-text">"', '"</span>', false )
|
||||||
),
|
),
|
||||||
'<span class="edit-link">',
|
'<span class="edit-link">',
|
||||||
'</span>'
|
'</span>'
|
||||||
|
|
|
@ -26,8 +26,9 @@
|
||||||
<?php
|
<?php
|
||||||
edit_post_link(
|
edit_post_link(
|
||||||
sprintf(
|
sprintf(
|
||||||
esc_html_x( 'Edit %s', 'name of current post', '_s' ),
|
/* translators: %s: Name of current post */
|
||||||
wp_kses( the_title( '<span class="screen-reader-text">"', '"</span>', false ), array( 'span' => array( 'class' => array() ) ) )
|
esc_html__( 'Edit %s', '_s' ),
|
||||||
|
the_title( '<span class="screen-reader-text">"', '"</span>', false )
|
||||||
),
|
),
|
||||||
'<span class="edit-link">',
|
'<span class="edit-link">',
|
||||||
'</span>'
|
'</span>'
|
||||||
|
|
Reference in New Issue