[wp-trac] [WordPress Trac] #12560: occasional blog option corruption for serialized values

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 9 15:04:12 UTC 2010


#12560: occasional blog option corruption for serialized values
------------------------------+---------------------------------------------
 Reporter:  RogerTheriault    |       Owner:  hakre                
     Type:  defect (bug)      |      Status:  new                  
 Priority:  low               |   Milestone:  Future Release       
Component:  Warnings/Notices  |     Version:  3.0.1                
 Severity:  normal            |    Keywords:  needs-patch multisite
------------------------------+---------------------------------------------

Comment(by mastermind):

 The very simple solution would be to *not* use

 {{{
 if (! @unserialize( $value ) )
         $value = stripslashes( $value );
 }}}

 but

 {{{
 if (is_scalar( $value ) )
         $value = stripslashes( $value );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12560#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list