Filter imported comments

git-svn-id: https://develop.svn.wordpress.org/trunk@12269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-11-24 14:00:41 +00:00
parent 3821d10f89
commit 36b5b622f3
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++;
}