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

git-svn-id: https://develop.svn.wordpress.org/trunk@10014 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-02 19:25:42 +00:00
parent 5e9d071992
commit 04ac8afac0
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.