s/$original/$redirect/ in [13091]. Props miqrogroove. See #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eb22ca285f
commit
7ad40486aa
|
@ -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