Skip to content

Commit

Permalink
Coding Standards: Apply some alignment fixes.
Browse files Browse the repository at this point in the history
Follow up to [51145].
See #50105.

git-svn-id: https://develop.svn.wordpress.org/trunk@51147 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
desrosj committed Jun 14, 2021
1 parent 825a9c7 commit e40fec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-admin/includes/ajax-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2989,11 +2989,11 @@ function wp_ajax_query_attachments() {
*
* @param array $query An array of query variables.
*/
$query = apply_filters( 'ajax_query_attachments_args', $query );
$query = apply_filters( 'ajax_query_attachments_args', $query );
$attachments_query = new WP_Query( $query );

$posts = array_map( 'wp_prepare_attachment_for_js', $attachments_query->posts );
$posts = array_filter( $posts );
$posts = array_map( 'wp_prepare_attachment_for_js', $attachments_query->posts );
$posts = array_filter( $posts );
$total_posts = $attachments_query->found_posts;

if ( $total_posts < 1 ) {
Expand Down

0 comments on commit e40fec8

Please sign in to comment.