Make WordPress Core

Ticket #9256: 9256.diff

File 9256.diff, 557 bytes (added by Denis-de-Bernardy, 16 years ago)
  • wp-includes/query.php

     
    7373 * @uses $wp_query
    7474 */
    7575function 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]);
    7778        $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
    7879        global $wp_query;
    7980        if ( !empty($wp_query->post) ) {