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

Regression introduced in [34728].

Props ellie.roepken.
Fixes #34473. See #25493.
Built from https://develop.svn.wordpress.org/trunk@35482


git-svn-id: http://core.svn.wordpress.org/trunk@35446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-11-01 00:49:24 +00:00
parent 26b6acd081
commit 10f3ff1753
2 changed files with 2 additions and 2 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';
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta2-35481';
$wp_version = '4.4-beta2-35482';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.