Encode extra query vars in Canonical Taxonomy redirections. Props SergeyBiryukov. Fixes #18086
git-svn-id: http://svn.automattic.com/wordpress/trunk@18884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ecbc046a59
commit
d08955e123
|
@ -280,6 +280,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
|||
unset( $_parsed_query['name'] );
|
||||
}
|
||||
|
||||
$_parsed_query = array_map( 'rawurlencode', $_parsed_query );
|
||||
$redirect_url = add_query_arg( $_parsed_query, $redirect_url );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue