diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index a2bbd8753e..785dcf933f 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1086,7 +1086,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 a300b90293..63741caa4e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0.2-RC2-44337'; +$wp_version = '5.0.2-RC2-44339'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.