Ticket #15256: 15256.patch
File 15256.patch, 737 bytes (added by , 13 years ago) |
---|
-
wp-includes/canonical.php
145 145 if ( $redirect_url = get_author_posts_url($author->ID, $author->user_nicename) ) 146 146 $redirect['query'] = remove_query_arg('author', $redirect['query']); 147 147 } 148 } elseif ( is_category() && !empty($_GET['cat']) && preg_match( '|^[0-9]+$|', $_GET['cat'] ) ) { 149 if ( $redirect_url = get_term_link( (int) $_GET['cat'], 'category' ) ) 150 $redirect['query'] = remove_query_arg('cat', $redirect['query']); 148 151 } elseif ( is_category() || is_tag() || is_tax() ) { // Terms (Tags/categories) 149 152 150 153 $term_count = 0;