[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 21:05:15 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:"47453" 47453]:
 {{{
 #!CommitTicketReference repository="" revision="47453"
 General: Move `maybe_serialize()` to a more appropriate place in the file,
 before `maybe_unserialize()`.

 Rename the `$original` parameter of `maybe_unserialize()` to `$data`, for
 consistency with other serialization functions.

 See #36416.
 }}}

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


More information about the wp-trac mailing list