Changeset 7493 for trunk/tests/includes/testcase.php
- Timestamp:
- 11/02/2013 04:59:39 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/includes/testcase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/testcase.php
r7364 r7493 133 133 134 134 unset($GLOBALS['wp_query'], $GLOBALS['wp_the_query']); 135 $GLOBALS['wp_the_query'] = &new WP_Query();136 $GLOBALS['wp_query'] = &$GLOBALS['wp_the_query'];137 $GLOBALS['wp'] = &new WP();135 $GLOBALS['wp_the_query'] = new WP_Query(); 136 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 137 $GLOBALS['wp'] = new WP(); 138 138 139 139 // clean out globals to stop them polluting wp and wp_query
Note: See TracChangeset
for help on using the changeset viewer.