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:
parent
26b6acd081
commit
10f3ff1753
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue