From b35f4bf51909fcb43ab280eb98a03adb026fbc45 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@10014 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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.