Changeset 10397 for branches/2.7/wp-includes/canonical.php
- Timestamp:
- 01/21/2009 07:51:59 PM (17 years ago)
- File:
-
- 1 edited
-
branches/2.7/wp-includes/canonical.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/canonical.php
r9883 r10397 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']) ) {122 } elseif ( is_category() && !empty($_GET['cat']) && preg_match( '|^[0-9]+$|', $_GET['cat'] ) ) { 123 123 if ( $redirect_url = get_category_link(get_query_var('cat')) ) 124 124 $redirect['query'] = remove_query_arg('cat', $redirect['query']);
Note: See TracChangeset
for help on using the changeset viewer.