Index: wordpress.php
===================================================================
--- wordpress.php	(revision 8392)
+++ wordpress.php	(working copy)
@@ -390,6 +390,7 @@
 		if ( $post_exists ) {
 			echo '<li>';
 			printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
+			$post_id = $post_exists;
 		} else {
 
 			// If it has parent, process parent first.
