|
@@ 399-402 (lines=4) @@
|
| 396 |
|
return $url; |
| 397 |
|
} |
| 398 |
|
|
| 399 |
|
if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
| 400 |
|
// remove www if not present in option URL. |
| 401 |
|
$url['host'] = $option_url['host']; |
| 402 |
|
} |
| 403 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 404 |
|
// add www if present in option URL. |
| 405 |
|
$url['host'] = $option_url['host']; |
|
@@ 403-406 (lines=4) @@
|
| 400 |
|
// remove www if not present in option URL. |
| 401 |
|
$url['host'] = $option_url['host']; |
| 402 |
|
} |
| 403 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 404 |
|
// add www if present in option URL. |
| 405 |
|
$url['host'] = $option_url['host']; |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
$normalized_url = "{$url['scheme']}://{$url['host']}"; |
| 409 |
|
if ( isset( $url['path'] ) ) { |