|
@@ 520-523 (lines=4) @@
|
| 517 |
|
return $url; |
| 518 |
|
} |
| 519 |
|
|
| 520 |
|
if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
| 521 |
|
// remove www if not present in option URL. |
| 522 |
|
$url['host'] = $option_url['host']; |
| 523 |
|
} |
| 524 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 525 |
|
// add www if present in option URL. |
| 526 |
|
$url['host'] = $option_url['host']; |
|
@@ 524-527 (lines=4) @@
|
| 521 |
|
// remove www if not present in option URL. |
| 522 |
|
$url['host'] = $option_url['host']; |
| 523 |
|
} |
| 524 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 525 |
|
// add www if present in option URL. |
| 526 |
|
$url['host'] = $option_url['host']; |
| 527 |
|
} |
| 528 |
|
|
| 529 |
|
$normalized_url = "{$url['scheme']}://{$url['host']}"; |
| 530 |
|
if ( isset( $url['path'] ) ) { |