diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index dec958cba2..acb43ef758 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1157,7 +1157,7 @@ function wp_edit_posts_query( $q = false ) { $query = compact( 'post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page' ); // Hierarchical types require special args. - if ( is_post_type_hierarchical( $post_type ) && ! isset( $orderby ) ) { + if ( is_post_type_hierarchical( $post_type ) && empty( $orderby ) ) { $query['orderby'] = 'menu_order title'; $query['order'] = 'asc'; $query['posts_per_page'] = -1; diff --git a/wp-includes/version.php b/wp-includes/version.php index 78c8c0a80e..ac7990d442 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44336'; +$wp_version = '5.1-alpha-44338'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.