diff --git a/wp-includes/query.php b/wp-includes/query.php index e76472f45..cea523f5f 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -22,6 +22,11 @@ function &query_posts($query) { return $GLOBALS['wp_query']->query($query); } +function wp_reset_query() { + unset($GLOBALS['wp_query']); + $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query']; +} + /* * Query type checks. */