Make WordPress Core


Ignore:
Timestamp:
04/19/2015 10:54:57 AM (9 years ago)
Author:
pento
Message:

Backport the PHPUnit test fixes from [31622] to the 3.8 branch.

Props boonebgorges.

See #31537.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8/tests/phpunit/tests/canonical.php

    r26091 r32150  
    8181
    8282    function tearDown() {
     83        wp_set_current_user( $this->old_current_user );
     84
     85        $GLOBALS['wp_rewrite']->init();
    8386        parent::tearDown();
    84         wp_set_current_user( $this->old_current_user );
    85 
    86         $GLOBALS['wp_rewrite']->init();
    8787    }
    8888
Note: See TracChangeset for help on using the changeset viewer.