[wp-trac] [WordPress Trac] #18410: WP_Query should unserialize serialized data before matching
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 15 11:54:21 UTC 2011
#18410: WP_Query should unserialize serialized data before matching
-------------------------+-----------------------------
Reporter: Doggie52 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.2.1
Severity: normal | Keywords:
-------------------------+-----------------------------
When storing an array (from a custom field, for example) in the database,
it gets serialized. After having been serialized, there is to my knowledge
no way to perform a meta_query with another (either serialized or
unserialized) array and match the two. This can become a major hassle, as
arrays are the preferred form of storing data for a host of different
types of custom fields.
WP_Query should, preferably, check for serialized data and unserialize it
before attempting to match against an array, should it not?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18410>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list