Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 3 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:


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)

comment:1 markjaquith5 years ago

  • Milestone changed from 2.7 to 2.8

comment:2 Denis-de-Bernardy5 years ago

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

comment:3 Denis-de-Bernardy5 years ago

  • Milestone changed from Future Release to 2.9

comment:4 janeforshort4 years ago

  • Milestone changed from 2.9 to Future Release

Punting b/c no patch.

comment:5 duck_4 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

comment:6 nacin3 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.