[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:43:11 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 | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by mattheu):
Use case:
I have a plugin that allows users to add custom fields to the post edit
screen. It is possible to create a field and add multiple values which are
then stored as separate post meta entries using a single key. Users expect
that the order of this data will be preserved.
When this data is saved, all previously stored data is deleted and then
added again in the order it was submitted to ensure that the meta_id order
corresponds to the desired order of the data.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25511#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list