Remove category ordering. Props filosofo. fixes #9228

git-svn-id: https://develop.svn.wordpress.org/trunk@10779 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-13 22:01:33 +00:00
parent bcdc0c5021
commit a8f8d9bdad
1 changed files with 1 additions and 1 deletions

View File

@ -2019,7 +2019,7 @@ class WP_Query {
$q['orderby'] = "$wpdb->posts.post_date ".$q['order']; $q['orderby'] = "$wpdb->posts.post_date ".$q['order'];
} else { } else {
// Used to filter values // Used to filter values
$allowed_keys = array('author', 'date', 'category', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand'); $allowed_keys = array('author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand');
if ( !empty($q['meta_key']) ) { if ( !empty($q['meta_key']) ) {
$allowed_keys[] = $q['meta_key']; $allowed_keys[] = $q['meta_key'];
$allowed_keys[] = 'meta_value'; $allowed_keys[] = 'meta_value';