Changeset 26006 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 11/04/2013 10:46:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r26005 r26006 187 187 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 188 188 $GLOBALS['wp'] = new WP(); 189 190 // clean out globals to stop them polluting wp and wp_query 191 foreach ($GLOBALS['wp']->public_query_vars as $v) { 192 unset($GLOBALS[$v]); 193 } 194 foreach ($GLOBALS['wp']->private_query_vars as $v) { 195 unset($GLOBALS[$v]); 196 } 189 _cleanup_query_vars(); 197 190 198 191 $GLOBALS['wp']->main($parts['query']);
Note: See TracChangeset
for help on using the changeset viewer.