WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#7973 closed defect (bug) (fixed)

Two _wp_attachment_metadata records when importing attachments

Reported by: mtdewvirus Owned by:
Milestone: 2.8.5 Priority: normal
Severity: normal Version: 2.7
Component: Import Keywords:
Focuses: Cc:

Description

When importing attachments with the WordPress import, two _wp_attachment_metadata records get created in the postmeta table. One of the records creates all new metadata from the file that is imported to the file system. The second record grabs the _wp_attachment_metadata out of the import file (which is already serialized) and serializes the entire thing as a string.

Change History (6)

#1 @markjaquith
12 years ago

  • Milestone changed from 2.7 to 2.8

#2 @Denis-de-Bernardy
11 years ago

  • Keywords needs-patch added; import attachment metadata postmeta removed
  • Milestone changed from 2.8 to Future Release

#3 @Denis-de-Bernardy
11 years ago

  • Milestone changed from Future Release to 2.9

#4 @janeforshort
11 years ago

  • Milestone changed from 2.9 to Future Release

Punting b/c no patch.

#5 @duck_
10 years ago

  • Keywords needs-patch removed
  • Milestone changed from Future Release to 2.8.5
  • Resolution set to fixed
  • Status changed from new to closed

#6 @nacin
10 years ago

(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.

Note: See TracTickets for help on using tickets.