User ref instead of copying. Props m4ttias. fixes #2256

git-svn-id: http://svn.automattic.com/wordpress/trunk@3519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-02-12 08:14:10 +00:00
parent e309d60bdb
commit 8b166d5c9b
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}