WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 3 years ago

Last modified 3 years ago

#6081 closed enhancement (wontfix)

Importers: use foreign post IDs when possible

Reported by: tellyworth Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Import Keywords:
Focuses: Cc:

Description

When possible, the importers should attempt to insert posts using the foreign post ID. Not all import formats include that info, but some do, including WXR. There's an example for MT here:

http://www.muditajournal.com/archives/000280.php

I wouldn't suggest using that patch verbatim but wp_insert_post() could be enhanced to allow the post ID to be set when inserting, not just when updating.

Change History (6)

comment:1 thee175 years ago

  • Component changed from General to Import
  • Owner anonymous deleted

comment:2 Denis-de-Bernardy5 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.9 to Future Release

comment:3 Denis-de-Bernardy5 years ago

  • Keywords close added

suggesting close, too, as it can result in conflicts, mis-placed posts, and lots of other things.

comment:4 johnbillion3 years ago

  • Keywords needs-patch close removed
  • Resolution set to wontfix
  • Status changed from new to closed

No traction in three years. I don't think this is possible anyway because ID is an auto_increment field.

comment:5 duck_3 years ago

This was done already... [9100]

comment:6 nacin3 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.