Browse files

Be a bit more conservative in which args are stripped after redirect_…

…guess_404_permalink(). see #20380.

git-svn-id: http://core.svn.wordpress.org/trunk@20386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent f5bfc05 commit 2fad7152f310ccba8ae881b1e52aca0bc23ae786 markjaquith committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-includes/canonical.php
View
2 wp-includes/canonical.php
@@ -94,7 +94,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
if ( ! $redirect_url ) {
$redirect_url = redirect_guess_404_permalink( $requested_url );
- $redirect['query'] = remove_query_arg( array( 'p', 'page_id', 'attachment_id', 'post_type', 'pagename', 'name' ), $redirect['query'] );
+ $redirect['query'] = remove_query_arg( array( 'post_type', 'pagename', 'name' ), $redirect['query'] );
}
} elseif ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) {

0 comments on commit 2fad715

Please sign in to comment.