User ref instead of copying. Props m4ttias. fixes #2256
git-svn-id: https://develop.svn.wordpress.org/trunk@3519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c4def34475
commit
0fc597ee9e
@ -268,7 +268,7 @@ class WP_Query {
|
||||
do_action('pre_get_posts', array(&$this));
|
||||
|
||||
// Shorthand.
|
||||
$q = $this->query_vars;
|
||||
$q = &$this->query_vars;
|
||||
|
||||
// First let's clear some variables
|
||||
$whichcat = '';
|
||||
@ -681,8 +681,6 @@ class WP_Query {
|
||||
$this->post = $this->posts[0];
|
||||
}
|
||||
|
||||
// Save any changes made to the query vars.
|
||||
$this->query_vars = $q;
|
||||
return $this->posts;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user