mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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
|
||||
if ( strpos($original['path'], '//') > -1 )
|
||||
if ( strpos($redirect['path'], '//') > -1 )
|
||||
$redirect['path'] = preg_replace('|/+|', '/', $redirect['path']);
|
||||
|
||||
// Always trailing slash the Front Page URL
|
||||
|
Loading…
Reference in New Issue
Block a user