Safer hierarchical display check. Fixes #14600; See #14579

git-svn-id: https://develop.svn.wordpress.org/trunk@15501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-08-16 01:36:21 +00:00
parent 52737f7b3e
commit 6d510588aa
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -1246,11 +1246,7 @@ class WP_Query {
function parse_query($query) {
if ( !empty($query) || !isset($this->query) ) {
$this->init();
if ( is_array($query) )
$this->query_vars = $query;
else
parse_str($query, $this->query_vars);
$this->query = $query;
$this->query = $this->query_vars = wp_parse_args($query);
}
$this->query_vars = $this->fill_query_vars($this->query_vars);