Opened 3 years ago

Last modified 2 years ago

#15030 new defect (bug)

Unserialize deep when returning arrays of metadata — at Version 2

Reported by: nacin Owned by:
Priority: normal Milestone: Future Release
Component: General Version:
Severity: normal Keywords: needs-patch
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)

  • Keywords needs-patch added

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

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

nacin3 years ago

Patches get_metadata()

Note: See TracTickets for help on using tickets.