Ticket #24974: 24974.patch
| File 24974.patch, 664 bytes (added by , 12 years ago) |
|---|
-
includes/testcase.php
129 129 130 130 $this->flush_cache(); 131 131 unset($GLOBALS['wp_query'], $GLOBALS['wp_the_query']); 132 $GLOBALS['wp_the_query'] = &new WP_Query();133 $GLOBALS['wp_query'] = &$GLOBALS['wp_the_query'];134 $GLOBALS['wp'] = &new WP();132 $GLOBALS['wp_the_query'] = new WP_Query(); 133 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 134 $GLOBALS['wp'] = new WP(); 135 135 136 136 // clean out globals to stop them polluting wp and wp_query 137 137 foreach ($GLOBALS['wp']->public_query_vars as $v) {