Ticket #9256: 9256.diff
File 9256.diff, 557 bytes (added by , 16 years ago) |
---|
-
wp-includes/query.php
73 73 * @uses $wp_query 74 74 */ 75 75 function wp_reset_query() { 76 unset($GLOBALS['wp_query']); 76 foreach ( array('id', 'authordata', 'day', 'currentmonth', 'page', 'pages', 'multipage', 'more', 'numpages', 'post', 'wp_query') as $var ) 77 unset($GLOBALS[$var]); 77 78 $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query']; 78 79 global $wp_query; 79 80 if ( !empty($wp_query->post) ) {