From 83e11093ab6aa9c6512e215ce9645e589dbe8460 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sun, 28 Feb 2010 13:15:54 +0000 Subject: [PATCH] remove LOWER() in Order by clause for Post Meta. Allows MySQL to use the indexes properly. Props Denis-de-Bernardy. Fixes #11741 git-svn-id: http://svn.automattic.com/wordpress/trunk@13503 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index fae3d3e911..2616907d12 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2427,7 +2427,7 @@ function meta_form() { FROM $wpdb->postmeta GROUP BY meta_key HAVING meta_key NOT LIKE '\_%' - ORDER BY LOWER(meta_key) + ORDER BY meta_key LIMIT $limit" ); if ( $keys ) natcasesort($keys); @@ -3288,7 +3288,7 @@ function find_posts_div($found_action = '') { -
+
@@ -3298,7 +3298,7 @@ function find_posts_div($found_action = '') {
- +