Make WordPress Core

Opened 8 years ago

Last modified 19 months ago

#15030 closed defect (bug)

Unserialize deep when returning arrays of metadata — at Version 2

Reported by: nacin Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords: revert
Focuses: Cc:

Description (last modified by nacin)

Currently when retrieving an array of metadata values for an object (no meta key specialized), they are retrieved as serialized. Only when meta key is specified do we unserialize.

We should array_map( 'maybe_unserialize' ) on what we plan to return instead of forcing plugins to call that themselves.

Change History (3)

#1 @westi
8 years ago

  • Keywords needs-patch added

Sounds reasonable. What is the WP function your going to patch here?

#2 @nacin
8 years ago

  • Description modified (diff)
  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Awaiting Review to 3.1

8 years ago

Patches get_metadata()

Note: See TracTickets for help on using tickets.