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
This commit is contained in:
ryan 2011-09-30 18:12:14 +00:00
parent cd0c3f605e
commit e46e579ce5
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {