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:
dd32 2010-02-13 08:29:55 +00:00
parent eb22ca285f
commit 7ad40486aa
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