diff --git a/wp-includes/post.php b/wp-includes/post.php index 17abaf8558..cd4a32093f 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -5775,14 +5775,14 @@ function get_page_by_path( $page_path, $output = OBJECT, $post_type = 'page' ) { */ function get_page_by_title( $page_title, $output = OBJECT, $post_type = 'page' ) { $args = array( - 'post_title' => $page_title, + 'title' => $page_title, 'post_type' => $post_type, 'post_status' => get_post_stati(), 'posts_per_page' => 1, 'update_post_term_cache' => false, 'update_post_meta_cache' => false, 'no_found_rows' => true, - 'orderby' => 'ID', + 'orderby' => 'post_date ID', 'order' => 'ASC', ); $query = new WP_Query( $args ); diff --git a/wp-includes/version.php b/wp-includes/version.php index e63039dc3e..5c012e8790 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54270'; +$wp_version = '6.1-alpha-54271'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.