From 6df9616ff6bd47525e8894008b0d28ea92e8a8a4 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 22 Aug 2016 21:03:05 +0000 Subject: [PATCH] Comments: in `wp_handle_comment_submission()`, `$_wp_unfiltered_html_comment` is passed as part of `$comment_data`, but is not used locally. See #37771. git-svn-id: https://develop.svn.wordpress.org/trunk@38313 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index dad3f7639a..b816a51f4d 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -2741,7 +2741,7 @@ function _close_comments_for_old_post( $open, $post_id ) { function wp_handle_comment_submission( $comment_data ) { $comment_post_ID = $comment_parent = 0; - $comment_author = $comment_author_email = $comment_author_url = $comment_content = $_wp_unfiltered_html_comment = null; + $comment_author = $comment_author_email = $comment_author_url = $comment_content = null; if ( isset( $comment_data['comment_post_ID'] ) ) { $comment_post_ID = (int) $comment_data['comment_post_ID']; @@ -2761,9 +2761,6 @@ function wp_handle_comment_submission( $comment_data ) { if ( isset( $comment_data['comment_parent'] ) ) { $comment_parent = absint( $comment_data['comment_parent'] ); } - if ( isset( $comment_data['_wp_unfiltered_html_comment'] ) && is_string( $comment_data['_wp_unfiltered_html_comment'] ) ) { - $_wp_unfiltered_html_comment = trim( $comment_data['_wp_unfiltered_html_comment'] ); - } $post = get_post( $comment_post_ID );