Make WordPress Core

Opened 19 years ago

Closed 16 years ago

Last modified 16 years ago

#5447 closed defect (bug) (fixed)

wxr importer uses wrong category when duplicate name exists

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

Description

It's legit for two categories to have the same name when they're in different parts of a hierarchy:

Foo A
Foo Parent - Foo A

The importer gets this wrong however. It inserts both categories with the correct names and parents, but posts in the second cat will incorrectly be assigned to the first on import.

The 'Category name clash' post in this import file reproduces the problem. It should be in the Foo Parent - Foo A category, not the top level Foo A category.

​http://svn.automattic.com/wordpress-tests/wp-testdata/export/asdftestblog1.2007-12-10.xml

Change History (6)

#1 @tellyworth
19 years ago

The exporter is part of the problem here - it lists post categories by name rather than by a unique identifier.

#2 @thee17
18 years ago

  • Component General → Import
  • Owner anonymous removed

#3 @ryan
17 years ago

  • Milestone 2.9 → Future Release

#4 @edir
16 years ago

I got the same problem, using version WPMU 2.9.2, discussing here.
​http://wordpress.org/support/topic/401799

#5 @nacin
16 years ago

  • Resolution → fixed
  • Status new → closed

(In [15961]) Importer and exporter overhaul, mega props duck.

Exporter overhaul:

  • Add author information to export
  • Greater usage of slug identifiers
  • Don't export auto-drafts, spam comments, or edit lock/last meta keys
  • Inline documentation improvements
  • Remove filtering for now (@todo)
  • Bump WXR version to 1.1, but remain back compat in the importer

Importer overhaul (​http://plugins.trac.wordpress.org/changeset/304249):

  • Use an XML parser where available (SimpleXML, XML Parser)
  • Proper import support for navigation menus
  • Many bug fixes, specifically improvements to category and custom taxonomy handling
  • Better author/user mapping

Fixes #5447 #5460 #7400 #7973 #8471 #9237 #10319 #11118 #11144 #11354 #11574 #12685 #13364 #13394 #13453 #13454 #13627 #14306 #14442 #14524 #14750 #15055 #15091 #15108.

See #15197.

#6 @nacin
16 years ago

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