mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@15501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user