diff --git a/app/Hametuha/Thread/UI/CommentForm.php b/app/Hametuha/Thread/UI/CommentForm.php index 71de7ba..9bb662c 100644 --- a/app/Hametuha/Thread/UI/CommentForm.php +++ b/app/Hametuha/Thread/UI/CommentForm.php @@ -84,8 +84,7 @@ public function comment_display( $comment, $args, $depth, $close = false, $echo $html .= ""; } if ( $echo ) { - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Safe HTML composed from comment_class() and the escaped comment-loop template part. - echo $html; + echo wp_kses_post( $html ); } return $html; } diff --git a/template-parts/button-comment-post.php b/template-parts/button-comment-post.php index 9ba30d8..2413783 100644 --- a/template-parts/button-comment-post.php +++ b/template-parts/button-comment-post.php @@ -2,10 +2,7 @@
diff --git a/template-parts/button-thread-controller.php b/template-parts/button-thread-controller.php index b4c11da..a555c66 100644 --- a/template-parts/button-thread-controller.php +++ b/template-parts/button-thread-controller.php @@ -58,16 +58,14 @@
diff --git a/template-parts/comment-loop.php b/template-parts/comment-loop.php index 8173201..957486f 100644 --- a/template-parts/comment-loop.php +++ b/template-parts/comment-loop.php @@ -11,10 +11,7 @@
    @@ -42,11 +39,8 @@
    - - + + @@ -58,10 +52,7 @@

    - +

    @@ -70,8 +61,7 @@
    diff --git a/template-parts/comments.php b/template-parts/comments.php index be4c19c..dfe5571 100644 --- a/template-parts/comments.php +++ b/template-parts/comments.php @@ -16,8 +16,7 @@ ?>
diff --git a/template-parts/form-comment.php b/template-parts/form-comment.php index d22ff84..1ecf10d 100644 --- a/template-parts/form-comment.php +++ b/template-parts/form-comment.php @@ -18,8 +18,7 @@
tags. - echo wpautop( esc_html( $parent_comment->comment_content ) ); + echo wp_kses_post( wpautop( esc_html( $parent_comment->comment_content ) ) ); ?>
diff --git a/template-parts/woocommerce-my-account.php b/template-parts/woocommerce-my-account.php index e7cbe8d..e6b59ea 100644 --- a/template-parts/woocommerce-my-account.php +++ b/template-parts/woocommerce-my-account.php @@ -25,8 +25,7 @@
@@ -35,22 +34,19 @@