[wp-trac] [WordPress Trac] #36416: maybe_unserialize returns false if non trimmed string is passed but is_serialized returns true
WordPress Trac
noreply at wordpress.org
Fri Mar 13 20:39:16 UTC 2020
#36416: maybe_unserialize returns false if non trimmed string is passed but
is_serialized returns true
-------------------------------------------------+-------------------------
Reporter: pbearne | Owner:
| SergeyBiryukov
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.5
Component: General | Version: 2.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"47452" 47452]:
{{{
#!CommitTicketReference repository="" revision="47452"
Tests: Extract `is_serialized()` test cases into data providers; reuse
them for `maybe_serialize()` and `maybe_unserialize()` tests.
Props pbearne, mikeschroder, SergeyBiryukov.
See #36416.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36416#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list