|
@@ 124-127 (lines=4) @@
|
| 121 |
|
$url = parse_url( $url ); |
| 122 |
|
|
| 123 |
|
if ( $normalize_www ) { |
| 124 |
|
if ( $url['host'] === "www.{$option_url[ 'host' ]}" ) { |
| 125 |
|
// remove www if not present in option URL |
| 126 |
|
$url['host'] = $option_url['host']; |
| 127 |
|
} |
| 128 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 129 |
|
// add www if present in option URL |
| 130 |
|
$url['host'] = $option_url['host']; |
|
@@ 128-131 (lines=4) @@
|
| 125 |
|
// remove www if not present in option URL |
| 126 |
|
$url['host'] = $option_url['host']; |
| 127 |
|
} |
| 128 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 129 |
|
// add www if present in option URL |
| 130 |
|
$url['host'] = $option_url['host']; |
| 131 |
|
} |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
if ( $url['host'] === $option_url['host'] ) { |