Make WordPress Core

Changeset 13623


Ignore:
Timestamp:
03/09/2010 10:07:03 AM (15 years ago)
Author:
dd32
Message:

Correct logic inversion in Canonical Taxonomy Term links. Fixes #12547

File:
1 edited

Legend:

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

    r13480 r13623  
    142142            $obj = $wp_query->get_queried_object();
    143143
    144             if ( $term_count > 1 && !empty($obj->term_id) && ( $tax_url = get_term_link((int)$obj->term_id, $obj->taxonomy) ) && !is_wp_error($tax_url) ) {
     144            if ( $term_count <= 1 && !empty($obj->term_id) && ( $tax_url = get_term_link((int)$obj->term_id, $obj->taxonomy) ) && !is_wp_error($tax_url) ) {
    145145
    146146                if ( is_category() ) {
Note: See TracChangeset for help on using the changeset viewer.