diff --git a/inc/template-tags.php b/inc/template-tags.php index 5babf4be..4c5c6cf1 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -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( '"', '"', false ) + /* translators: %s: Name of current post. Only visible to screen readers */ + wp_kses( __( 'Edit %s', '_s' ), array( 'span' => array( 'class' => array() ) ) ), + get_the_title() ), '', '' diff --git a/template-parts/content-page.php b/template-parts/content-page.php index 6b5d7f73..42614812 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -30,9 +30,9 @@ "', '"', false ) + /* translators: %s: Name of current post. Only visible to screen readers */ + wp_kses( __( 'Edit %s', '_s' ), array( 'span' => array( 'class' => array() ) ) ), + get_the_title() ), '', ''