[wp-trac] Re: [WordPress Trac] #7383: maybe_serialize() should serialize all non-string values

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 20 11:26:21 GMT 2009


#7383: maybe_serialize() should serialize all non-string values
------------------------------------+---------------------------------------
 Reporter:  DD32                    |        Owner:  anonymous
     Type:  enhancement             |       Status:  new      
 Priority:  normal                  |    Milestone:  2.9      
Component:  General                 |      Version:  2.6      
 Severity:  normal                  |   Resolution:           
 Keywords:  has-patch dev-feedback  |  
------------------------------------+---------------------------------------
Comment (by DD32):

 Yeah.. I'm tempted to close as wontfix and leave us people to work around
 it.

 The default value of 'false' being returned is nothing to be worried
 about, its easy enough to work around with the default option value
 (get_option('non-exitant-option', null); === null)

 As a plugin author, you should know what datatype is stored, so
 (float)get_option('my-option', 0.00); is easy enough.. And if you've got
 multiple items.. its easier to use a array.. which will have its types
 stored..

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


More information about the wp-trac mailing list