Make WordPress Core

Opened 5 years ago

Last modified 10 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)

comment:1 @westi5 years ago

  • Keywords needs-patch added

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

comment:2 @nacin5 years ago

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

@nacin5 years ago

Patches get_metadata()

Note: See TracTickets for help on using tickets.