mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Init query_vars as an array.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0c12548e12
commit
ea9df4eb3f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user