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:
parent
cd0c3f605e
commit
e46e579ce5
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue