Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#38352 closed defect (bug) (duplicate)

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

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

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
10 years ago

  • Resolution → duplicate
  • Status new → closed

Duplicate of #15030.

#2 @netweb
10 years ago

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