wp_reset_query() from mdawaffe. fixes #4741
git-svn-id: https://develop.svn.wordpress.org/trunk@5907 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d8adefe0b2
commit
a79d48ea1c
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user