mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-03 19:41:39 +00:00
Comments: Use more appropriate escaping functions in class WP_Comments_List_Table.
This changeset replaces `esc_attr` escaping function with `esc_html` as it is more appropriate in this context. Props chintan1896, afragen, peterwilsoncc, SergeyBiryukov. Fixes #56101. git-svn-id: https://develop.svn.wordpress.org/trunk@53640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -917,8 +917,8 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
?>
|
||||
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
|
||||
<textarea class="comment" rows="1" cols="1"><?php echo esc_textarea( $comment_content ); ?></textarea>
|
||||
<div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
|
||||
<div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
|
||||
<div class="author-email"><?php echo esc_html( $comment->comment_author_email ); ?></div>
|
||||
<div class="author"><?php echo esc_html( $comment->comment_author ); ?></div>
|
||||
<div class="author-url"><?php echo esc_url( $comment->comment_author_url ); ?></div>
|
||||
<div class="comment_status"><?php echo $comment->comment_approved; ?></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user