Make WordPress Core


Ignore:
Timestamp:
01/08/2019 04:31:56 AM (7 years ago)
Author:
pento
Message:

Query: Fix some code formatting issues introduced in [44452].

See #38034.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/query.php

    r44452 r44456  
    183183        $ordered = array( $posts[2], $posts[0], $posts[3] );
    184184
    185         $q = new WP_Query( array(
    186             'post_type' => 'any',
    187             'post__in' => $ordered,
    188             'orderby' => array( 'post__in' => 'ASC' ),
    189         ) );
     185        $q = new WP_Query(
     186            array(
     187                'post_type' => 'any',
     188                'post__in'  => $ordered,
     189                'orderby'   => array( 'post__in' => 'ASC' ),
     190            )
     191        );
    190192        $this->assertSame( $ordered, wp_list_pluck( $q->posts, 'ID' ) );
    191193    }
     
    199201        $ordered = array( $posts[2], $posts[0], $posts[3] );
    200202
    201         $q = new WP_Query( array(
    202             'post_type' => 'any',
    203             'post__in' => $ordered,
    204             'orderby' => 'post__in',
    205         ) );
     203        $q = new WP_Query(
     204            array(
     205                'post_type' => 'any',
     206                'post__in'  => $ordered,
     207                'orderby'   => 'post__in',
     208            )
     209        );
    206210        $this->assertSame( $ordered, wp_list_pluck( $q->posts, 'ID' ) );
    207211    }
Note: See TracChangeset for help on using the changeset viewer.