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:
parent
ba0f401390
commit
567bc9d3f1
|
@ -22,6 +22,11 @@ function &query_posts($query) {
|
||||||
return $GLOBALS['wp_query']->query($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.
|
* Query type checks.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue