Make WordPress Core


Ignore:
Timestamp:
08/16/2010 01:36:21 AM (14 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r15471 r15501  
    12471247        if ( !empty($query) || !isset($this->query) ) {
    12481248            $this->init();
    1249             if ( is_array($query) )
    1250                 $this->query_vars = $query;
    1251             else
    1252                 parse_str($query, $this->query_vars);
    1253             $this->query = $query;
     1249            $this->query = $this->query_vars = wp_parse_args($query);
    12541250        }
    12551251
Note: See TracChangeset for help on using the changeset viewer.