[wp-trac] [WordPress Trac] #62483: maybe_serialize() does support double serialization, but does not the developer if doing so
WordPress Trac
noreply at wordpress.org
Wed Nov 20 09:04:59 UTC 2024
#62483: maybe_serialize() does support double serialization, but does not the
developer if doing so
-------------------------+-----------------------------
Reporter: apermo | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.6.1
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
In #12930 the support of double serialization was added, in order not to
break instances where developers used `maybe_serialize()` wrong, I
recently stumbled upon a case from 2023 where this also happened.
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.
Patch coming
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62483>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list