|
@@ 463-466 (lines=4) @@
|
| 460 |
|
return $url; |
| 461 |
|
} |
| 462 |
|
|
| 463 |
|
if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
| 464 |
|
// remove www if not present in option URL. |
| 465 |
|
$url['host'] = $option_url['host']; |
| 466 |
|
} |
| 467 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 468 |
|
// add www if present in option URL. |
| 469 |
|
$url['host'] = $option_url['host']; |
|
@@ 467-470 (lines=4) @@
|
| 464 |
|
// remove www if not present in option URL. |
| 465 |
|
$url['host'] = $option_url['host']; |
| 466 |
|
} |
| 467 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 468 |
|
// add www if present in option URL. |
| 469 |
|
$url['host'] = $option_url['host']; |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
$normalized_url = "{$url['scheme']}://{$url['host']}"; |
| 473 |
|
if ( isset( $url['path'] ) ) { |