Changeset 15462
- Timestamp:
- 07/22/2010 08:08:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r15444 r15462 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']);
Note: See TracChangeset
for help on using the changeset viewer.