Make WordPress Core


Ignore:
Timestamp:
11/04/2013 10:46:44 PM (11 years ago)
Author:
wonderboymusic
Message:

WP_UnitTestCase::go_to() tried its best to clean up global space, but ultimately fell short. Because it was blowing away WP every time it was called, it was dropping all the query vars that were registered for custom taxonomies and custom post types (ouch).

Introduces _cleanup_query_vars(). This is a prerequisite for the unit tests on #20767. All unit tests pass with this change.

See #20767.
Fixes #25818.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r25991 r26006  
    606606        $this->handle_404();
    607607        $this->register_globals();
    608        
     608
    609609        /**
    610610         * Fires once the WordPress environment has been set up.
Note: See TracChangeset for help on using the changeset viewer.