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