|
@@ 115-118 (lines=4) @@
|
| 112 |
|
$url = parse_url( $url ); |
| 113 |
|
|
| 114 |
|
if ( $normalize_www ) { |
| 115 |
|
if ( $url['host'] === "www.{$option_url[ 'host' ]}" ) { |
| 116 |
|
// remove www if not present in option URL |
| 117 |
|
$url['host'] = $option_url['host']; |
| 118 |
|
} |
| 119 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 120 |
|
// add www if present in option URL |
| 121 |
|
$url['host'] = $option_url['host']; |
|
@@ 119-122 (lines=4) @@
|
| 116 |
|
// remove www if not present in option URL |
| 117 |
|
$url['host'] = $option_url['host']; |
| 118 |
|
} |
| 119 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 120 |
|
// add www if present in option URL |
| 121 |
|
$url['host'] = $option_url['host']; |
| 122 |
|
} |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
if ( $url['host'] === $option_url['host'] ) { |