Merge pull request #1367 from devcogs/comments-1366

escape get_the_title
This commit is contained in:
Ismail El Korchi 2020-04-05 17:57:01 +01:00 committed by GitHub
commit 2351bef6ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -33,14 +33,14 @@ if ( post_password_required() ) {
printf(
/* translators: 1: title. */
esc_html__( 'One thought on “%1$s”', '_s' ),
'<span>' . get_the_title() . '</span>'
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $_s_comment_count, 'comments title', '_s' ) ),
number_format_i18n( $_s_comment_count ),
'<span>' . get_the_title() . '</span>'
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
}
?>

View File

@ -86,7 +86,7 @@ if ( ! function_exists( '_s_entry_footer' ) ) :
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
)
);
echo '</span>';
@ -103,7 +103,7 @@ if ( ! function_exists( '_s_entry_footer' ) ) :
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
),
'<span class="edit-link">',
'</span>'

View File

@ -41,7 +41,7 @@
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
),
'<span class="edit-link">',
'</span>'

View File

@ -43,7 +43,7 @@
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
) );
wp_link_pages( array(