Ticket #7892: canonical.php.patch
| File canonical.php.patch, 639 bytes (added by , 17 years ago) |
|---|
-
canonical.php
213 213 } 214 214 215 215 // Always trailing slash the 'home' URL 216 if ( $redirect['path'] == $user_home['path'] ) 216 if ( $redirect['path'] == $user_home['path'] ) 217 217 $redirect['path'] = trailingslashit($redirect['path']); 218 else if ( is_front_page() && empty($redirect['path']) ) 219 $redirect['path'] = '/'; 218 220 219 221 // Ignore differences in host capitalization, as this can lead to infinite redirects 220 222 if ( strtolower($original['host']) == strtolower($redirect['host']) )