Assign comment post ID when importing existing posts. Props tott. fixes #8458

git-svn-id: http://svn.automattic.com/wordpress/trunk@10014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-12-02 19:25:42 +00:00
parent 11a4ee8555
commit b35f4bf519
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ class WP_Import {
if ( $post_exists ) {
echo '<li>';
printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
$post_id = $post_exists;
$comment_post_ID = $post_id = $post_exists;
} else {
// If it has parent, process parent first.