Make WordPress Core


Ignore:
Timestamp:
09/10/2013 03:01:10 AM (11 years ago)
Author:
wonderboymusic
Message:

Move checks for post_type being an array inline. See [25291], [25292], #18614.

File:
1 edited

Legend:

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

    r25292 r25312  
    700700        $this->assertQueryTrue( 'is_post_type_archive', 'is_archive' );
    701701        $this->assertEquals( get_queried_object(), get_post_type_object( $cpt_name ) );
    702         $this->assertEquals( get_queried_object(), get_post_type_object( array( $cpt_name ) ) );
    703         $this->assertEquals( get_queried_object(), get_post_type_object( array( $cpt_name, 'post' ) ) );
    704702
    705703        add_action( 'pre_get_posts', array( $this, 'pre_get_posts_with_type_array' ) );
     
    708706        $this->assertQueryTrue( 'is_post_type_archive', 'is_archive' );
    709707        $this->assertEquals( get_queried_object(), get_post_type_object( 'post' ) );
    710         $this->assertEquals( get_queried_object(), get_post_type_object( array( 'post' ) ) );
    711         $this->assertEquals( get_queried_object(), get_post_type_object( array( 'post', $cpt_name ) ) );
    712708
    713709        remove_action( 'pre_get_posts', array( $this, 'pre_get_posts_with_type_array' ) );
Note: See TracChangeset for help on using the changeset viewer.