Improve meta_form() query. Props Denis-de-Bernardy. fixes #8561

git-svn-id: https://develop.svn.wordpress.org/trunk@10998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-18 23:48:07 +00:00
parent 96467705d7
commit 1c40d30776

View File

@ -2441,7 +2441,7 @@ function meta_form() {
FROM $wpdb->postmeta FROM $wpdb->postmeta
WHERE meta_key NOT LIKE '\_%' WHERE meta_key NOT LIKE '\_%'
GROUP BY meta_key GROUP BY meta_key
ORDER BY meta_id DESC ORDER BY meta_key
LIMIT $limit" ); LIMIT $limit" );
if ( $keys ) if ( $keys )
natcasesort($keys); natcasesort($keys);