Make WordPress Core

Changeset 36048


Ignore:
Timestamp:
12/21/2015 06:59:05 AM (9 years ago)
Author:
johnbillion
Message:

Query: Re-initialise any dynamically-added public query vars before running the public query vars test.

See #35115

File:
1 edited

Legend:

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

    r36045 r36048  
    1313    public function testPublicQueryVarsAreAsExpected() {
    1414        global $wp;
     15
     16        // Re-initialise any dynamically-added public query vars:
     17        do_action( 'init' );
     18
    1519        $this->assertEquals( array(
    1620
Note: See TracChangeset for help on using the changeset viewer.