Make WordPress Core


Ignore:
Timestamp:
07/03/2014 01:42:57 AM (12 years ago)
Author:
wonderboymusic
Message:

Setup rewrite changes in tests in a predictable fashion. Don't mix method calls with wrapper function calls.

See #28706.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/canonical.php

    r28964 r28966  
    8585
    8686        function tearDown() {
     87                global $wp_rewrite;
    8788                parent::tearDown();
    8889                wp_set_current_user( $this->old_current_user );
    8990
    90                 $GLOBALS['wp_rewrite']->init();
     91                $wp_rewrite->init();
    9192        }
    9293
Note: See TracChangeset for help on using the changeset viewer.