ClassicPress PetitionsClassicPress Petitions
This is a read-only archive. Post or comment on the live version of this page on our forums.

Add a flag to enable/disable maybe_serialize() functionality on metadata

November 29, 2018 · 14:00 · Greg Schoppe
Description

Since meta_queries don't take maybe_serialize() into account, and since serialized strings are doubly serialized, there is a situation where a value can be stored in post meta that cannot be retrieved. Adding an optional $strict flag to metadata functions that casts all values as strings, without conversion, would solve this issue.

Voters
Discussion