[wp-trac] [WordPress Trac] #10619: Importing WXR breaks serialized postmeta value
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 7 13:29:17 UTC 2009
#10619: Importing WXR breaks serialized postmeta value
----------------------------+-----------------------------------------------
Reporter: JonathanRogers | Owner: westi
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 2.9
Component: Import | Version: 2.8.4
Severity: normal | Keywords: has-patch needs-unit-tests
----------------------------+-----------------------------------------------
Changes (by westi):
* keywords: has-patch => has-patch needs-unit-tests
* owner: => westi
* status: new => accepted
Comment:
I think znafor's patch is the best solution here.
On export we put the raw data from the db into the xml file.
Normally when getting the post meta we would have called
{{{maybe_unserialize}}} on the value before returning - therefore we
should replicate that here before passing to add post meta so that we have
the same consistent behaviour.
Could someone generate a small WXR file with some post meta in to test
this with and report back on sucess/failure
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10619#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list