[wp-trac] Re: [WordPress Trac] #4028: Importing WXR breaks serialized postmeta value

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 12 02:49:14 GMT 2007


#4028: Importing WXR breaks serialized postmeta value
----------------------------------+-----------------------------------------
 Reporter:  takayukister          |        Owner:  anonymous
     Type:  defect                |       Status:  new      
 Priority:  low                   |    Milestone:  2.2      
Component:  Administration        |      Version:  2.2      
 Severity:  normal                |   Resolution:           
 Keywords:  import has-patch WXR  |  
----------------------------------+-----------------------------------------
Comment (by ryan):

 Actually, nothing passed to add_post_meta should be escaped. Unlike most
 other functions, add_post_meta does it's own escaping.  I think we just
 need to stripslashes() all postmeta values before handing off to
 add_post_meta.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4028#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list