WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/tests/phpunit/tests/taxonomy.php

    r35333 r36109  
    518518        $this->assertFalse( is_tax( 'wptests_tax' ) );
    519519    }
     520
     521    /**
     522     * @ticket 35089
     523     */
     524    public function test_query_var_should_be_forced_to_false_for_non_public_taxonomy() {
     525        register_taxonomy( 'wptests_tax', 'post', array(
     526            'public' => false,
     527            'query_var' => true,
     528        ) );
     529
     530        $tax = get_taxonomy( 'wptests_tax' );
     531        $this->assertFalse( $tax->query_var );
     532    }
    520533}
Note: See TracChangeset for help on using the changeset viewer.