diff --git a/wp-includes/query.php b/wp-includes/query.php index f47a860a2..34864b94f 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2329,7 +2329,7 @@ class WP_Query { $orderby = ''; } else { // Used to filter values - $allowed_keys = array('author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'comment_count'); + $allowed_keys = array('name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'comment_count'); if ( !empty($q['meta_key']) ) { $allowed_keys[] = $q['meta_key']; $allowed_keys[] = 'meta_value';