Post List Table: Hierarchical post types should not default to sorting by date.

Regression introduced in [34728].

Props ellie.roepken.
Fixes #34473. See #25493.

git-svn-id: https://develop.svn.wordpress.org/trunk@35482 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-11-01 00:48:36 +00:00
parent f64bc40f69
commit ca898ccbdb
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ function wp_edit_posts_query( $q = false ) {
$orderby = $q['orderby'];
} elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ) ) ) {
$orderby = 'modified';
} else {
} elseif ( ! is_post_type_hierarchical( $post_type ) ) {
$orderby = 'date';
}