[wp-trac] [WordPress Trac] #62483: maybe_serialize() does support double serialization, but does not inform the developer if doing so

WordPress Trac noreply at wordpress.org
Fri Feb 28 17:42:22 UTC 2025


#62483: maybe_serialize() does support double serialization, but does not inform
the developer if doing so
-------------------------+------------------------
 Reporter:  apermo       |       Owner:  audrasjb
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  6.8
Component:  General      |     Version:  3.6.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------

Comment (by TimothyBlynJacobs):

 > I suggest adding a _doing_it_wrong() if serialized code was sent to
 maybe_serialize in order to make less experienced developers aware of
 this.

 Can you expand further? Why do you think this is wrong?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62483#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list