mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 12:50:18 +01:00
Remove category ordering. Props filosofo. fixes #9228 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a3a543708e
commit
876fc98410
@ -2019,7 +2019,7 @@ class WP_Query {
|
||||
$q['orderby'] = "$wpdb->posts.post_date ".$q['order'];
|
||||
} else {
|
||||
// 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']) ) {
|
||||
$allowed_keys[] = $q['meta_key'];
|
||||
$allowed_keys[] = 'meta_value';
|
||||
|
Loading…
Reference in New Issue
Block a user