WordPress.org

Make WordPress Core

Changeset 6043


Ignore:
Timestamp:
09/05/07 22:48:58 (7 years ago)
Author:
ryan
Message:

Fix comment orphaning in blogger importer. Props andy. fixes #4406

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/blogger.php

    r6026 r6043  
    510510 
    511511        // Checks for duplicates 
    512         if ( 
    513             isset( $this->blogs[$importing_blog]['posts'][$entry->old_permalink] ) || 
    514             post_exists( $post_title, $post_content, $post_date ) 
    515         ) { 
     512        if ( isset( $this->blogs[$importing_blog]['posts'][$entry->old_permalink] ) ) { 
     513            ++$this->blogs[$importing_blog]['posts_skipped']; 
     514        } elseif ( $post_id = post_exists( $post_title, $post_content, $post_date ) ) { 
     515            $this->blogs[$importing_blog]['posts'][$entry->old_permalink] = $post_id; 
    516516            ++$this->blogs[$importing_blog]['posts_skipped']; 
    517517        } else { 
Note: See TracChangeset for help on using the changeset viewer.