From 0fc597ee9ef43ed3b34e62d385f1f11a42355a4d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 12 Feb 2006 08:14:10 +0000 Subject: [PATCH] User ref instead of copying. Props m4ttias. fixes #2256 git-svn-id: https://develop.svn.wordpress.org/trunk@3519 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index d576565e08..8f751c3dcc 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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; }