From 36b5b622f32bfebc4113e59dc5fc40cc6d1804f3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 24 Nov 2009 14:00:41 +0000 Subject: [PATCH] Filter imported comments git-svn-id: https://develop.svn.wordpress.org/trunk@12269 602fd350-edb4-49c9-b593-d223f7449a82 --- 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++; }