mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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);
|
||||
}
|
||||
|
||||
function wp_reset_query() {
|
||||
unset($GLOBALS['wp_query']);
|
||||
$GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
|
||||
}
|
||||
|
||||
/*
|
||||
* Query type checks.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user