don't re-urlencode taxonomy query vars. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15773 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2657fa5a5b
commit
253cc18443
@ -1420,11 +1420,11 @@ class WP_Query extends WP_Object_Query {
|
||||
'operator' => 'IN'
|
||||
);
|
||||
|
||||
$term = urlencode( urldecode( $q[$t->query_var] ) );
|
||||
$term = $q[$t->query_var];
|
||||
|
||||
if ( $t->hierarchical_url ) {
|
||||
$tax_query[] = array_merge( $tax_query_defaults, array(
|
||||
'terms' => array( basename( str_replace( '%2F', '/', $term ) ) )
|
||||
'terms' => array( basename( $term ) )
|
||||
) );
|
||||
} elseif ( strpos($term, '+') !== false ) {
|
||||
$terms = preg_split( '/[+\s]+/', $term );
|
||||
|
Loading…
Reference in New Issue
Block a user