WordPress.org

Make WordPress Core

Changeset 17549


Ignore:
Timestamp:
03/24/2011 01:18:41 AM (9 years ago)
Author:
dd32
Message:

Reinstate [15462] for 3.1; Prevents canonical redirects for custom rewrite rules for taxonomies. See #16627

File:
1 edited

Legend:

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

    r17499 r17549  
    151151
    152152            $obj = $wp_query->get_queried_object();
    153             if ( $term_count <= 1 && !empty($obj->term_id) && ( $tax_url = get_term_link((int)$obj->term_id, $obj->taxonomy) ) && !is_wp_error($tax_url) ) {
     153            if ( $term_count <= 1 && !empty($obj->term_id) && ( $tax_url = get_term_link((int)$obj->term_id, $obj->taxonomy) ) && !is_wp_error($tax_url) && !empty($redirect['query']) ) {
    154154                if ( !empty($redirect['query']) ) {
    155155                    if ( is_category() ) {
Note: See TracChangeset for help on using the changeset viewer.