Commit 567bc9d3 authored by ryan's avatar ryan

wp_reset_query() from mdawaffe. fixes #4741

git-svn-id: http://svn.automattic.com/wordpress/trunk@5907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent ba0f4013
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment