s/$original/$redirect/ in [13091]. Props miqrogroove. See #8948
git-svn-id: https://develop.svn.wordpress.org/trunk@13099 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
03695fa9ae
commit
a5ad001b73
@ -271,7 +271,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Strip multiple slashes out of the URL
|
// Strip multiple slashes out of the URL
|
||||||
if ( strpos($original['path'], '//') > -1 )
|
if ( strpos($redirect['path'], '//') > -1 )
|
||||||
$redirect['path'] = preg_replace('|/+|', '/', $redirect['path']);
|
$redirect['path'] = preg_replace('|/+|', '/', $redirect['path']);
|
||||||
|
|
||||||
// Always trailing slash the Front Page URL
|
// Always trailing slash the Front Page URL
|
||||||
|
Loading…
Reference in New Issue
Block a user