[wp-trac] [WordPress Trac] #25511: get_post_meta does not always return data in the same order
WordPress Trac
noreply at wordpress.org
Mon Oct 7 13:25:44 UTC 2013
#25511: get_post_meta does not always return data in the same order
--------------------------+-----------------------------
Reporter: mattheu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
--------------------------+-----------------------------
get_post_meta does not always return data in the same order when returning
an array of all meta values for a given key.
Expected outcome: I expect the order to remain the same every time this
data is retrieved.
This usually returns data in the correct order but it is not guaranteed as
the SQL query in the update_meta_cache function does not explicitly order
by anything.
I propose that meta data should be explicitly ordered by meta_id.
I have a patch if this is considered a but
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25511>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list