[wp-trac] [WordPress Trac] #10619: Importing WXR breaks serialized postmeta value
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 24 18:05:10 UTC 2009
#10619: Importing WXR breaks serialized postmeta value
----------------------------+-----------------------------------------------
Reporter: JonathanRogers | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Import | Version: 2.8.4
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Comment(by johncoswell):
I just got bitten by this bug in a WPMU->WPMU import, so here's my two
cents. Theoretically, you should be able to run already-serialized values
through maybe_unserialize(), because if it's not determined to be
serialized data, it simply returns the original data. I'm fine with
unserializing the data before passing into add_post_meta(), since if
you're working with serializable data structures in the first place, you'd
expect to be feeding those same structures back into add_post_meta().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10619#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list