From 28f4212cd2f48bbed1fa68f2e95c83ceab11ce7a Mon Sep 17 00:00:00 2001 From: Dion Hulse 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: https://develop.svn.wordpress.org/trunk@13503 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 = '') {
- +