diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-03 09:54:57 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-03 09:54:57 +0000 |
commit | 0c8ab6757b57b3d8cd156f59bf162ffdb823a3d1 (patch) | |
tree | 466d64b9a40313d14b2b616353ed00413ae51c43 /wp-includes/query.php | |
parent | 794932b9d2bdb8225d1ac0a373951846a46ac425 (diff) | |
download | wordpress-mu-0c8ab6757b57b3d8cd156f59bf162ffdb823a3d1.tar.gz wordpress-mu-0c8ab6757b57b3d8cd156f59bf162ffdb823a3d1.tar.xz wordpress-mu-0c8ab6757b57b3d8cd156f59bf162ffdb823a3d1.zip |
Added wp_reset_query()
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1058 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/query.php')
-rw-r--r-- | wp-includes/query.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wp-includes/query.php b/wp-includes/query.php index a079211..45b6316 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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.
*/
|