Changeset 5907

Show
Ignore:
Timestamp:
08/20/07 22:55:43 (1 year ago)
Author:
ryan
Message:

wp_reset_query() from mdawaffe. fixes #4741

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/query.php

    r5873 r5907  
    2121    $GLOBALS['wp_query'] =& new WP_Query(); 
    2222    return $GLOBALS['wp_query']->query($query); 
     23} 
     24 
     25function wp_reset_query() { 
     26    unset($GLOBALS['wp_query']); 
     27    $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query']; 
    2328} 
    2429