From ea9df4eb3f8b30f1c8b334576f2daf35e904a290 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 23 Oct 2006 01:34:00 +0000 Subject: [PATCH] Init query_vars as an array. git-svn-id: http://svn.automattic.com/wordpress/trunk@4414 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index a528943d9e..783443ed2c 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -254,7 +254,7 @@ function the_post() { class WP_Query { var $query; - var $query_vars; + var $query_vars = array(); var $queried_object; var $queried_object_id; var $request; @@ -315,7 +315,7 @@ class WP_Query { function init () { unset($this->posts); unset($this->query); - unset($this->query_vars); + $this->query_vars = array(); unset($this->queried_object); unset($this->queried_object_id); $this->post_count = 0;