From 7f43cc5d3a86df13fb47cc604c2bc91071b882f5 Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 6 Jul 2022 19:31:14 +0000 Subject: [PATCH] Coding Standards: Apply some alignment fixes after `composer format`. Follow up to [53485]. See #55674. Built from https://develop.svn.wordpress.org/trunk@53676 git-svn-id: http://core.svn.wordpress.org/trunk@53235 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../search/class-wp-rest-post-search-handler.php | 14 +++++++------- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php b/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php index 03f8ff295e..5d20661b05 100644 --- a/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php +++ b/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php @@ -58,11 +58,11 @@ class WP_REST_Post_Search_Handler extends WP_REST_Search_Handler { } $query_args = array( - 'post_type' => $post_types, - 'post_status' => 'publish', - 'paged' => (int) $request['page'], - 'posts_per_page' => (int) $request['per_page'], - 'ignore_sticky_posts' => true, + 'post_type' => $post_types, + 'post_status' => 'publish', + 'paged' => (int) $request['page'], + 'posts_per_page' => (int) $request['per_page'], + 'ignore_sticky_posts' => true, ); if ( ! empty( $request['search'] ) ) { @@ -81,8 +81,8 @@ class WP_REST_Post_Search_Handler extends WP_REST_Search_Handler { */ $query_args = apply_filters( 'rest_post_search_query', $query_args, $request ); - $query = new WP_Query(); - $posts = $query->query( $query_args ); + $query = new WP_Query(); + $posts = $query->query( $query_args ); // Querying the whole post object will warm the object cache, avoiding an extra query per result. $found_ids = wp_list_pluck( $posts, 'ID' ); $total = $query->found_posts; diff --git a/wp-includes/version.php b/wp-includes/version.php index aa9e70c432..0ab3679c3c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53673'; +$wp_version = '6.1-alpha-53676'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.