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:
parent
5e9d071992
commit
04ac8afac0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user