WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#7347 closed defect (bug) (fixed)

maybe_serialize() should serialize strings that are already serialized — at Version 3

Reported by: ryan Owned by:
Milestone: 2.6.1 Priority: normal
Severity: normal Version: 2.6
Component: General Keywords:
Focuses: Cc:

Description (last modified by ryan)

[8100] changed the behavior of maybe_serialize(). Instead of serializing an already serialized string, the string was returned as is. This broke plugins that passed serialized data to update_option()/get_option() expecting it to come back serialized. Instead it came back unserialized.

Change History (3)

comment:1 ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8372]) Don't return if is_string(). Proceed to check if is_serialized(). fixes #7347 for trunk

comment:2 ryan6 years ago

(In [8373]) Don't return if is_string(). Proceed to check if is_serialized(). fixes #7347 for 2.6

comment:3 ryan6 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.