|
@@ 454-457 (lines=4) @@
|
| 451 |
|
return $url; |
| 452 |
|
} |
| 453 |
|
|
| 454 |
|
if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
| 455 |
|
// remove www if not present in option URL. |
| 456 |
|
$url['host'] = $option_url['host']; |
| 457 |
|
} |
| 458 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 459 |
|
// add www if present in option URL. |
| 460 |
|
$url['host'] = $option_url['host']; |
|
@@ 458-461 (lines=4) @@
|
| 455 |
|
// remove www if not present in option URL. |
| 456 |
|
$url['host'] = $option_url['host']; |
| 457 |
|
} |
| 458 |
|
if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
| 459 |
|
// add www if present in option URL. |
| 460 |
|
$url['host'] = $option_url['host']; |
| 461 |
|
} |
| 462 |
|
|
| 463 |
|
$normalized_url = "{$url['scheme']}://{$url['host']}"; |
| 464 |
|
if ( isset( $url['path'] ) ) { |