WordPress.org

Make WordPress Core

Changeset 12269


Ignore:
Timestamp:
11/24/2009 02:00:41 PM (8 years ago)
Author:
ryan
Message:

Filter imported comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r12178 r12269  
    575575            if ( !$post_exists || !comment_exists($comment_author, $comment_date) ) {
    576576                $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');
     577                $commentdata = wp_filter_comment($commentdata);
    577578                wp_insert_comment($commentdata);
    578579                $num_comments++;
Note: See TracChangeset for help on using the changeset viewer.