From 559085db403a5fb04d2259f7204220f1165e328f Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 30 Sep 2011 16:43:57 +0000 Subject: [PATCH] Add name to list of allowed keys. Props MarcusPope. fixes #18638 git-svn-id: http://svn.automattic.com/wordpress/trunk@18838 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';