Make WordPress Core


Ignore:
Timestamp:
04/19/2015 08:01:25 AM (11 years ago)
Author:
pento
Message:

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

Props boonebgorges.

See #31537.

File:
1 edited

Legend:

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

    r26091 r32149  
    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.