Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#15339 closed defect (bug) (duplicate)

Custom Fields invalid export for serialized objects

Reported by: GDragoN Owned by:
Milestone: Priority: normal
Severity: major Version: 3.0.1
Component: Export Keywords:
Focuses: Cc:


When I export data to XML, custom fields are exported wrong. If a custom field contains serialized object, when exported whole object is considered string and exported as serialized string.

Instead this:


I get this in XML:



Change History (1)

#1 @duck_
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Sounds like you're doing it wrong passing serialized data to *_post_meta, see #12930. If you pass serialized data to the meta functions then it will be stored in the DB as a serialized string.

I believe you may be coming across an issue in which this serialized string is then imported and serialized again, this is now fixed in the development version of the importer. See #14509 and #10619.

Note: See TracTickets for help on using tickets.