@@ 284-287 (lines=4) @@ | ||
281 | return $url; |
|
282 | } |
|
283 | ||
284 | if ( $url[ 'host' ] === "www.{$option_url[ 'host' ]}" ) { |
|
285 | // remove www if not present in option URL |
|
286 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
287 | } |
|
288 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
289 | // add www if present in option URL |
|
290 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
@@ 288-291 (lines=4) @@ | ||
285 | // remove www if not present in option URL |
|
286 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
287 | } |
|
288 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
289 | // add www if present in option URL |
|
290 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
291 | } |
|
292 | ||
293 | $normalized_url = "{$url['scheme']}://{$url['host']}"; |
|
294 | if ( isset( $url['path'] ) ) { |