<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress Ideas &#187; Topic: Add order by meta_id to update_meta_cache</title>
		<link>http://wordpress.org/ideas/topic/add-order-by-meta_id-to-update_meta_cache</link>
		<description>WordPress Ideas &#187; Topic: Add order by meta_id to update_meta_cache</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 14:11:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/ideas/rss/topic/add-order-by-meta_id-to-update_meta_cache" rel="self" type="application/rss+xml" />

		<item>
			<title>Justin Tadlock on "Add order by meta_id to update_meta_cache"</title>
			<link>http://wordpress.org/ideas/topic/add-order-by-meta_id-to-update_meta_cache#post-18736</link>
			<pubDate>Sat, 12 Feb 2011 00:49:28 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">18736@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Good ideas tend to gain more <em>trac</em>tion in Trac, especially if you already have code that could fix the problem.
</p>]]></description>
					</item>
		<item>
			<title>donatien on "Add order by meta_id to update_meta_cache"</title>
			<link>http://wordpress.org/ideas/topic/add-order-by-meta_id-to-update_meta_cache#post-18733</link>
			<pubDate>Fri, 11 Feb 2011 09:47:57 +0000</pubDate>
			<dc:creator>donatien</dc:creator>
			<guid isPermaLink="false">18733@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Nope, thought the right way to go about it was to post it here for consideration and then someone in the dev team would pick it up if it was a good idea..</p>
<p>Should I put it in Trac?
</p>]]></description>
					</item>
		<item>
			<title>Justin Tadlock on "Add order by meta_id to update_meta_cache"</title>
			<link>http://wordpress.org/ideas/topic/add-order-by-meta_id-to-update_meta_cache#post-18676</link>
			<pubDate>Fri, 04 Feb 2011 20:55:55 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">18676@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>+1</p>
<p>Have you added a ticket for this on Trac?<br />
<a href="http://core.trac.wordpress.org" rel="nofollow">http://core.trac.wordpress.org</a>
</p>]]></description>
					</item>
		<item>
			<title>donatien on "Add order by meta_id to update_meta_cache"</title>
			<link>http://wordpress.org/ideas/topic/add-order-by-meta_id-to-update_meta_cache#post-18632</link>
			<pubDate>Thu, 03 Feb 2011 10:17:24 +0000</pubDate>
			<dc:creator>donatien</dc:creator>
			<guid isPermaLink="false">18632@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>As of now get_post_meta returns value pairs in random order when used with multiple custom fields with the same key. It would be useful to either get the meta_id back for manual sorting or (better) having the result set returned ordered by meta_id which is the order they were entered.</p>
<p>Ran into trouble when I tried to match up several "pairs" of custom fields with same keys and fixed it by changing line 294 of /wp-includes/meta.php to:</p>
<p><code>$meta_list = $wpdb-&#62;get_results( $wpdb-&#62;prepare(&#34;SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list) order by meta_id&#34;, $meta_type), ARRAY_A );</code></p>
<p>Simply added the "order by meta_id".</p>
<p>It would be great to have this included in the core, since it's not likely to hurt anyone. Some order is better than randomness.
</p>]]></description>
					</item>

	</channel>
</rss>
