[wp-trac] [WordPress Trac] #38352: get_metadata() doesn't maybe_unserialize() when no key is provided
WordPress Trac
noreply at wordpress.org
Tue Oct 18 16:49:46 UTC 2016
#38352: get_metadata() doesn't maybe_unserialize() when no key is provided
--------------------------------+-----------------------------
Reporter: hcgernhardtiii | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 4.6
Severity: normal | Keywords:
Focuses: |
--------------------------------+-----------------------------
When a key is not provided to {{{get_metadata()}}}, it simply returns the
raw contents of the cache (see
[https://core.trac.wordpress.org/browser/tags/4.6/src/wp-
includes/meta.php#L501 meta.php lines 501--503]) rather than applying
{{{maybe_unserialize()}}} to each retrieved metadata item as is done when
a key ''is'' provided. This seems to me to be inconsistent behavior.
Does this need to be changed/fixed?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38352>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list