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:
Dion Hulse 2010-02-13 08:29:55 +00:00
parent 03695fa9ae
commit a5ad001b73
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
}
// Strip multiple slashes out of the URL
if ( strpos($original['path'], '//') > -1 )
if ( strpos($redirect['path'], '//') > -1 )
$redirect['path'] = preg_replace('|/+|', '/', $redirect['path']);
// Always trailing slash the Front Page URL