From 55c131eb1462cb55404c4be29eb4cd1f10324dfc Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 24 Nov 2009 14:00:41 +0000 Subject: [PATCH] Filter imported comments git-svn-id: http://svn.automattic.com/wordpress/trunk@12269 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/wordpress.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index 2099d63aae..9645ac817a 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -574,6 +574,7 @@ class WP_Import { // if this is a new post we can skip the comment_exists() check if ( !$post_exists || !comment_exists($comment_author, $comment_date) ) { $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email', 'comment_author_IP', 'comment_date', 'comment_date_gmt', 'comment_content', 'comment_approved', 'comment_type', 'comment_parent'); + $commentdata = wp_filter_comment($commentdata); wp_insert_comment($commentdata); $num_comments++; }