mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Preserve the original query object as wp_the_query so that it's not stomped by subsequent calls to query_posts().
git-svn-id: https://develop.svn.wordpress.org/trunk@4460 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -249,8 +249,9 @@ class WP {
|
||||
}
|
||||
|
||||
function query_posts() {
|
||||
global $wp_the_query;
|
||||
$this->build_query_string();
|
||||
query_posts($this->query_vars);
|
||||
$wp_the_query->query($this->query_vars);
|
||||
}
|
||||
|
||||
function handle_404() {
|
||||
|
||||
Reference in New Issue
Block a user