From 04ac8afac0191f53fc30a18b589b726274a530e3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 2 Dec 2008 19:25:42 +0000 Subject: [PATCH] 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 --- wp-admin/import/wordpress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index fe14491a67..a6f5db4bd1 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -413,7 +413,7 @@ class WP_Import { if ( $post_exists ) { echo '
  • '; printf(__('Post %s already exists.'), stripslashes($post_title)); - $post_id = $post_exists; + $comment_post_ID = $post_id = $post_exists; } else { // If it has parent, process parent first.