Strip trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -86,7 +86,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||
$id = max( get_query_var('p'), get_query_var('page_id'), get_query_var('attachment_id'));
|
||||
if ( $id && $redirect_url = get_permalink($id) )
|
||||
$redirect['query'] = remove_query_arg(array('p', 'page_id', 'attachment_id'), $redirect['query']);
|
||||
|
||||
|
||||
if ( ! $redirect_url )
|
||||
$redirect_url = redirect_guess_404_permalink();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user