diff --git a/wp-includes/post.php b/wp-includes/post.php index 44f00898ab..b4e9f755d7 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -5787,7 +5787,7 @@ function get_page_by_title( $page_title, $output = OBJECT, $post_type = 'page' ) 'order' => 'ASC', ); $query = new WP_Query( $args ); - $pages = $query->get_posts(); + $pages = $query->posts; if ( empty( $pages ) ) { return null; diff --git a/wp-includes/version.php b/wp-includes/version.php index 7010f6ac89..8e3973026d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta2-54376'; +$wp_version = '6.1-beta2-54377'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.