From 2ee9183f8a74f82a83c427492b7ff68d1ba071b2 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 5 Sep 2007 22:48:58 +0000 Subject: [PATCH] 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 --- wp-admin/import/blogger.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/import/blogger.php b/wp-admin/import/blogger.php index 9dc05c9bca..20585d5c59 100644 --- a/wp-admin/import/blogger.php +++ b/wp-admin/import/blogger.php @@ -509,10 +509,10 @@ class Blogger_Import { $post_content = str_replace('
', '
', $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');