From 08ef658e614e67b9bf3a63d7cdab977a494fd161 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 18 Apr 2009 23:48:07 +0000 Subject: [PATCH] Improve meta_form() query. Props Denis-de-Bernardy. fixes #8561 git-svn-id: http://svn.automattic.com/wordpress/trunk@10998 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 52d5858db8..c1cfc18b8d 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2441,7 +2441,7 @@ function meta_form() { FROM $wpdb->postmeta WHERE meta_key NOT LIKE '\_%' GROUP BY meta_key - ORDER BY meta_id DESC + ORDER BY meta_key LIMIT $limit" ); if ( $keys ) natcasesort($keys);