Changes from branches/2.7/wp-includes/canonical.php at r10506 to trunk/wp-includes/canonical.php at r9883
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r10506 r9883 120 120 if ( $redirect_url = get_year_link(get_query_var('year')) ) 121 121 $redirect['query'] = remove_query_arg('year', $redirect['query']); 122 } elseif ( is_category() && !empty($_GET['cat']) && preg_match( '|^[0-9]+$|', $_GET['cat'] )) {122 } elseif ( is_category() && !empty($_GET['cat']) ) { 123 123 if ( $redirect_url = get_category_link(get_query_var('cat')) ) 124 124 $redirect['query'] = remove_query_arg('cat', $redirect['query']); … … 137 137 // Strip off paging and feed 138 138 $paged_redirect['path'] = preg_replace('#/page/[0-9]+?(/+)?$#', '/', $paged_redirect['path']); // strip off any existing paging 139 $paged_redirect['path'] = preg_replace('#/(comments/?)?(feed|rss2?|rdf|atom)(/+ |$)#', '/', $paged_redirect['path']); // strip off feed endings139 $paged_redirect['path'] = preg_replace('#/(comments/?)?(feed|rss2?|rdf|atom)(/+)?$#', '/', $paged_redirect['path']); // strip off feed endings 140 140 $paged_redirect['path'] = preg_replace('#/comment-page-[0-9]+?(/+)?$#', '/', $paged_redirect['path']); // strip off any existing comment paging 141 141 }
Note: See TracChangeset
for help on using the changeset viewer.