Make WordPress Core

Changeset 53676


Ignore:
Timestamp:
07/06/2022 07:29:29 PM (2 years ago)
Author:
desrosj
Message:

Coding Standards: Apply some alignment fixes after composer format.

Follow up to [53485].

See #55674.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php

    r53485 r53676  
    5959
    6060        $query_args = array(
    61             'post_type'              => $post_types,
    62             'post_status'            => 'publish',
    63             'paged'                  => (int) $request['page'],
    64             'posts_per_page'         => (int) $request['per_page'],
    65             'ignore_sticky_posts'    => true,
     61            'post_type'           => $post_types,
     62            'post_status'         => 'publish',
     63            'paged'               => (int) $request['page'],
     64            'posts_per_page'      => (int) $request['per_page'],
     65            'ignore_sticky_posts' => true,
    6666        );
    6767
     
    8282        $query_args = apply_filters( 'rest_post_search_query', $query_args, $request );
    8383
    84         $query     = new WP_Query();
    85         $posts     = $query->query( $query_args );
     84        $query = new WP_Query();
     85        $posts = $query->query( $query_args );
    8686        // Querying the whole post object will warm the object cache, avoiding an extra query per result.
    8787        $found_ids = wp_list_pluck( $posts, 'ID' );
Note: See TracChangeset for help on using the changeset viewer.