[wp-trac] [WordPress Trac] #15030: Unserialize deep when returning arrays of metadata
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 4 11:10:47 UTC 2010
#15030: Unserialize deep when returning arrays of metadata
--------------------------+-------------------------------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by nacin):
* keywords: needs-patch => has-patch
* milestone: Awaiting Review => 3.1
Old 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.
New description:
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.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15030#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list