From e46e579ce5f518254a911d868bd54b99af653f5f Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 30 Sep 2011 18:12:14 +0000 Subject: [PATCH] Restore sorting by post_name in get_pages(). Props SergeyBiryukov. fixes #18805 git-svn-id: http://svn.automattic.com/wordpress/trunk@18845 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index f18e94084d..94f916ec70 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3455,7 +3455,7 @@ function &get_pages($args = '') { } $orderby_array = array(); - $allowed_keys = array('author', 'post_author', 'date', 'post_date', 'title', 'post_title', 'modified', + $allowed_keys = array('author', 'post_author', 'date', 'post_date', 'title', 'post_title', 'name', 'post_name', 'modified', 'post_modified', 'modified_gmt', 'post_modified_gmt', 'menu_order', 'parent', 'post_parent', 'ID', 'rand', 'comment_count'); foreach ( explode( ',', $sort_column ) as $orderby ) {