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