mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Trim trailing whites
git-svn-id: https://develop.svn.wordpress.org/trunk@13268 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -144,7 +144,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||
$redirect['query'] = remove_query_arg( array( 'category_name', 'tag', 'cat', 'tag_id', 'term', 'taxonomy'), $redirect['query']);
|
||||
if ( is_tax() ) { // Custom taxonomies will have a custom query var, remove those too:
|
||||
$tax = get_taxonomy( $obj->taxonomy );
|
||||
if ( false !== $tax->query_var)
|
||||
if ( false !== $tax->query_var)
|
||||
$redirect['query'] = remove_query_arg($tax->query_var, $redirect['query']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user