Ticket #6977: 6977_fix.patch
| File 6977_fix.patch, 0.8 kB (added by minddog, 7 months ago) |
|---|
-
wp-includes/canonical.php
old new 179 179 if ( strtolower($original['host']) == strtolower($redirect['host']) ) 180 180 $redirect['host'] = $original['host']; 181 181 182 if ( array($original['host'], $original['port'], $original['path'], $original['query']) !== array($redirect['host'], $redirect['port'], $redirect['path'], $redirect['query']) ) { 182 if ( array($original['host'], @$original['port'], $original['path'], @$original['query']) 183 !== array($redirect['host'], @$redirect['port'], $redirect['path'], @$redirect['query']) ) { 183 184 $redirect_url = $redirect['scheme'] . '://' . $redirect['host']; 184 185 if ( isset($redirect['port']) ) 185 186 $redirect_url .= ':' . $redirect['port'];
