Fix comment orphaning in blogger importer. Props andy. fixes #4406
git-svn-id: http://svn.automattic.com/wordpress/trunk@6043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7bdf6d6c6e
commit
2ee9183f8a
|
@ -509,10 +509,10 @@ class Blogger_Import {
|
||||||
$post_content = str_replace('<hr>', '<hr />', $post_content);
|
$post_content = str_replace('<hr>', '<hr />', $post_content);
|
||||||
|
|
||||||
// Checks for duplicates
|
// Checks for duplicates
|
||||||
if (
|
if ( isset( $this->blogs[$importing_blog]['posts'][$entry->old_permalink] ) ) {
|
||||||
isset( $this->blogs[$importing_blog]['posts'][$entry->old_permalink] ) ||
|
++$this->blogs[$importing_blog]['posts_skipped'];
|
||||||
post_exists( $post_title, $post_content, $post_date )
|
} 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'];
|
++$this->blogs[$importing_blog]['posts_skipped'];
|
||||||
} else {
|
} else {
|
||||||
$post = compact('post_date', 'post_content', 'post_title', 'post_status');
|
$post = compact('post_date', 'post_content', 'post_title', 'post_status');
|
||||||
|
|
Loading…
Reference in New Issue