|
@@ 100-103 (lines=4) @@
|
| 97 |
|
$url = parse_url( $url ); |
| 98 |
|
|
| 99 |
|
if ( $normalize_www ) { |
| 100 |
|
if ( $url['host'] === "www.{$option_url[ 'host' ]}" ) { |
| 101 |
|
// remove www if not present in option URL |
| 102 |
|
$url['host'] = $option_url['host']; |
| 103 |
|
} |
| 104 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 105 |
|
// add www if present in option URL |
| 106 |
|
$url['host'] = $option_url['host']; |
|
@@ 104-107 (lines=4) @@
|
| 101 |
|
// remove www if not present in option URL |
| 102 |
|
$url['host'] = $option_url['host']; |
| 103 |
|
} |
| 104 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 105 |
|
// add www if present in option URL |
| 106 |
|
$url['host'] = $option_url['host']; |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
if ( $url['host'] === $option_url['host'] ) { |