mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Try to preserve post IDs during import
git-svn-id: https://develop.svn.wordpress.org/trunk@9100 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -430,6 +430,7 @@ class WP_Import {
|
||||
$post_author = $this->checkauthor($post_author); //just so that if a post already exists, new users are not created by checkauthor
|
||||
|
||||
$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');
|
||||
$postdata['import_id'] = $post_ID;
|
||||
if ($post_type == 'attachment') {
|
||||
$remote_url = $this->get_tag( $post, 'wp:attachment_url' );
|
||||
if ( !$remote_url )
|
||||
|
||||
Reference in New Issue
Block a user