WordPress.org

Make WordPress Core

Ticket #4741: 4741.diff

File 4741.diff, 399 bytes (added by mdawaffe, 7 years ago)
  • wp-includes/query.php

     
    2222        return $GLOBALS['wp_query']->query($query); 
    2323} 
    2424 
     25function wp_reset_query() { 
     26        unset($GLOBALS['wp_query']); 
     27        $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query']; 
     28} 
     29 
    2530/* 
    2631 * Query type checks. 
    2732 */