wp_reset_query() from mdawaffe. fixes #4741

git-svn-id: http://svn.automattic.com/wordpress/trunk@5907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-08-20 22:55:43 +00:00
parent ba0f401390
commit 567bc9d3f1
1 changed files with 5 additions and 0 deletions

View File

@ -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.
*/