Ticket #14201: no-ascii-category-base.diff
File no-ascii-category-base.diff, 756 bytes (added by , 15 years ago) |
---|
-
wp-includes/canonical.php
156 156 157 157 $obj = $wp_query->get_queried_object(); 158 158 159 if ( $term_count <= 1 && !empty($obj->term_id) && ( $tax_url = get_term_link((int)$obj->term_id, $obj->taxonomy) ) && !is_wp_error($tax_url) ) {160 159 if ( $term_count <= 1 && !empty($obj->term_id) && ( $tax_url = get_term_link((int)$obj->term_id, $obj->taxonomy) ) 160 && !is_wp_error($tax_url) && $redirect['query'] ) { 161 161 if ( is_category() ) { 162 162 $redirect['query'] = remove_query_arg( array( 'category_name', 'category', 'cat'), $redirect['query']); 163 163 } elseif ( is_tag() ) {