Restore sorting by post_name in get_pages(). Props SergeyBiryukov. fixes #18805
git-svn-id: https://develop.svn.wordpress.org/trunk@18845 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0fb49c10e3
commit
2678fd4f60
@ -3455,7 +3455,7 @@ function &get_pages($args = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$orderby_array = array();
|
$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',
|
'post_modified', 'modified_gmt', 'post_modified_gmt', 'menu_order', 'parent', 'post_parent',
|
||||||
'ID', 'rand', 'comment_count');
|
'ID', 'rand', 'comment_count');
|
||||||
foreach ( explode( ',', $sort_column ) as $orderby ) {
|
foreach ( explode( ',', $sort_column ) as $orderby ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user