WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 months ago

#15030 new defect (bug)

Unserialize deep when returning arrays of metadata — at Initial Version

Reported by: nacin Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords: needs-patch
Focuses: Cc:

Description

Currently when retrieving an array of metadata values, they are retrieved as unserialized. Only when $single = true 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 (0)

Note: See TracTickets for help on using tickets.