don't re-urlencode taxonomy query vars. See #12891

git-svn-id: http://svn.automattic.com/wordpress/trunk@15773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-10-11 12:18:42 +00:00
parent 57ccc147e2
commit d1ba770236
1 changed files with 2 additions and 2 deletions

View File

@ -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 );