Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#19218 closed defect (bug) (fixed)

Posts with same title cannot be imported into different post types

Reported by: misternifty Owned by:
Milestone: WordPress.org Priority: normal
Severity: minor Version: 3.2.1
Component: Import Keywords: has-patch
Focuses: Cc:


  1. Import a post using a standard WXR
  2. Edit the WXR and change the post type (to a registered post type) of a previously imported item
  3. Importer will say the post already exists

A post can exist with the same title in two different post types. The importer should reflect this as well.

Attachments (1)

19218.diff (683 bytes) - added by duck_ 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @duck_
10 years ago

  • Milestone changed from Awaiting Review to WordPress.org

Could do either of

  • Update post_exists() to accept a $post_type parameter
  • Retrieve the result of post_exists() in the importer and check the post type

The second can be done quickest as the first isn't going to happen for 3.3.

10 years ago

#2 @duck_
10 years ago

  • Keywords has-patch added; needs-patch removed

19218.diff for option two described above.

#3 @duck_
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.