mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@26006 git-svn-id: http://core.svn.wordpress.org/trunk@25937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50fbc698fd
commit
a5eb3208d7
@ -605,7 +605,7 @@ class WP {
|
||||
$this->query_posts();
|
||||
$this->handle_404();
|
||||
$this->register_globals();
|
||||
|
||||
|
||||
/**
|
||||
* Fires once the WordPress environment has been set up.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user