Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#38352 closed defect (bug) (duplicate)

get_metadata() doesn't maybe_unserialize() when no key is provided

Reported by: hcgernhardtiii's profile hcgernhardtiii Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6
Component: Options, Meta APIs Keywords:
Focuses: Cc:

Description

When a key is not provided to get_metadata(), it simply returns the raw contents of the cache (see 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?

Change History (2)

#1 @mbelchev
8 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #15030.

#2 @netweb
8 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.