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