Twenty Twenty: Remove unnecessary escaping of get_the_title()
in comments.php
.
For users with the `unfiltered_html` capability, titles can contain legitimate markup. The title is filtered on saving, so the content in the database is considered safe. Props kjellr, joyously, peterwilsoncc. Fixes #49190. git-svn-id: https://develop.svn.wordpress.org/trunk@47110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8e6c884e87
commit
3e3b98aad7
@ -34,9 +34,9 @@ if ( $comments ) {
|
||||
_e( 'Leave a comment', 'twentytwenty' );
|
||||
} elseif ( '1' === $comments_number ) {
|
||||
/* translators: %s: post title */
|
||||
printf( _x( 'One reply on “%s”', 'comments title', 'twentytwenty' ), esc_html( get_the_title() ) );
|
||||
printf( _x( 'One reply on “%s”', 'comments title', 'twentytwenty' ), get_the_title() );
|
||||
} else {
|
||||
echo sprintf(
|
||||
printf(
|
||||
/* translators: 1: number of comments, 2: post title */
|
||||
_nx(
|
||||
'%1$s reply on “%2$s”',
|
||||
@ -46,7 +46,7 @@ if ( $comments ) {
|
||||
'twentytwenty'
|
||||
),
|
||||
number_format_i18n( $comments_number ),
|
||||
esc_html( get_the_title() )
|
||||
get_the_title()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user