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:
ryan 2007-09-05 22:48:58 +00:00
parent 7bdf6d6c6e
commit 2ee9183f8a
1 changed files with 4 additions and 4 deletions

View File

@ -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');