Fix comment orphaning in blogger importer. Props andy. fixes #4406
git-svn-id: https://develop.svn.wordpress.org/trunk@6043 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
54ff897f1a
commit
0b78fa4aa1
|
@ -509,10 +509,10 @@ class Blogger_Import {
|
|||
$post_content = str_replace('<hr>', '<hr />', $post_content);
|
||||
|
||||
// Checks for duplicates
|
||||
if (
|
||||
isset( $this->blogs[$importing_blog]['posts'][$entry->old_permalink] ) ||
|
||||
post_exists( $post_title, $post_content, $post_date )
|
||||
) {
|
||||
if ( isset( $this->blogs[$importing_blog]['posts'][$entry->old_permalink] ) ) {
|
||||
++$this->blogs[$importing_blog]['posts_skipped'];
|
||||
} elseif ( $post_id = post_exists( $post_title, $post_content, $post_date ) ) {
|
||||
$this->blogs[$importing_blog]['posts'][$entry->old_permalink] = $post_id;
|
||||
++$this->blogs[$importing_blog]['posts_skipped'];
|
||||
} else {
|
||||
$post = compact('post_date', 'post_content', 'post_title', 'post_status');
|
||||
|
|
Loading…
Reference in New Issue