Filter imported comments

git-svn-id: http://svn.automattic.com/wordpress/trunk@12269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-24 14:00:41 +00:00
parent 1ddec52d4e
commit 55c131eb14
1 changed files with 1 additions and 0 deletions

View File

@ -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++;
}