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