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
This commit is contained in:
ryan 2009-04-18 23:48:07 +00:00
parent a6dd527f4e
commit 08ef658e61
1 changed files with 1 additions and 1 deletions

View File

@ -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);