WordPress.org

Make WordPress Core

Changeset 15773


Ignore:
Timestamp:
10/11/10 12:18:42 (4 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

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

    r15768 r15773  
    14211421                ); 
    14221422 
    1423                 $term = urlencode( urldecode( $q[$t->query_var] ) ); 
     1423                $term = $q[$t->query_var]; 
    14241424 
    14251425                if ( $t->hierarchical_url ) { 
    14261426                    $tax_query[] = array_merge( $tax_query_defaults, array( 
    1427                         'terms' => array( basename( str_replace( '%2F', '/', $term ) ) ) 
     1427                        'terms' => array( basename( $term ) ) 
    14281428                    ) ); 
    14291429                } elseif ( strpos($term, '+') !== false ) { 
Note: See TracChangeset for help on using the changeset viewer.