|
@@ 293-296 (lines=4) @@
|
| 290 |
|
return $url; |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
if ( $url['host'] === "www.{$option_url[ 'host' ]}" ) { |
| 294 |
|
// remove www if not present in option URL |
| 295 |
|
$url['host'] = $option_url['host']; |
| 296 |
|
} |
| 297 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 298 |
|
// add www if present in option URL |
| 299 |
|
$url['host'] = $option_url['host']; |
|
@@ 297-300 (lines=4) @@
|
| 294 |
|
// remove www if not present in option URL |
| 295 |
|
$url['host'] = $option_url['host']; |
| 296 |
|
} |
| 297 |
|
if ( $option_url['host'] === "www.{$url[ 'host' ]}" ) { |
| 298 |
|
// add www if present in option URL |
| 299 |
|
$url['host'] = $option_url['host']; |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
$normalized_url = "{$url['scheme']}://{$url['host']}"; |
| 303 |
|
if ( isset( $url['path'] ) ) { |