|
@@ 477-480 (lines=4) @@
|
| 474 |
|
return $url; |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
| 478 |
|
// remove www if not present in option URL. |
| 479 |
|
$url['host'] = $option_url['host']; |
| 480 |
|
} |
| 481 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 482 |
|
// add www if present in option URL. |
| 483 |
|
$url['host'] = $option_url['host']; |
|
@@ 481-484 (lines=4) @@
|
| 478 |
|
// remove www if not present in option URL. |
| 479 |
|
$url['host'] = $option_url['host']; |
| 480 |
|
} |
| 481 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 482 |
|
// add www if present in option URL. |
| 483 |
|
$url['host'] = $option_url['host']; |
| 484 |
|
} |
| 485 |
|
|
| 486 |
|
$normalized_url = "{$url['scheme']}://{$url['host']}"; |
| 487 |
|
if ( isset( $url['path'] ) ) { |