WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/08/2008 09:42:52 PM (13 years ago)
Author:
ryan
Message:

Try to preserve post IDs during import

File:
1 edited

Legend:

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

    r8957 r9100  
    431431
    432432            $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_excerpt', 'post_title', 'post_status', 'post_name', 'comment_status', 'ping_status', 'guid', 'post_parent', 'menu_order', 'post_type', 'post_password');
     433            $postdata['import_id'] = $post_ID;
    433434            if ($post_type == 'attachment') {
    434435                $remote_url = $this->get_tag( $post, 'wp:attachment_url' );
Note: See TracChangeset for help on using the changeset viewer.