WordPress.org

Make WordPress Core

Changeset 15463


Ignore:
Timestamp:
07/22/10 20:08:45 (4 years ago)
Author:
ryan
Message:

Temp fix for canonical redirects of taxonomy links containing non-ASCII bases. Props nbachiyski. see #14201 for 3.0.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/canonical.php

    r15438 r15463  
    157157            $obj = $wp_query->get_queried_object(); 
    158158 
    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'] ) { 
    161161                if ( is_category() ) { 
    162162                    $redirect['query'] = remove_query_arg( array( 'category_name', 'category', 'cat'), $redirect['query']); 
Note: See TracChangeset for help on using the changeset viewer.