[wp-trac] [WordPress Trac] #16597: Bug in the maybe_serialize() function - it serializing also serailize objects.

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 19 18:46:35 UTC 2011


#16597: Bug in the maybe_serialize() function - it serializing also serailize
objects.
--------------------------+------------------------------
 Reporter:  maorb         |       Owner:  nacin
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  3.0.5
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by maorb):

 Why it should be double serialized?
 This means that if one will pass serialized data to the add_metadata()
 function, it will never be parsed ok, since it will add the second
 serialization.
 This causes breaking of the data when pulling out from the db..
 If double serialize is a must, maybe should have addition to the
 get_metadata() to handle it better?

 Thanks

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


More information about the wp-trac mailing list