@@ 251-254 (lines=4) @@ | ||
248 | return $url; |
|
249 | } |
|
250 | ||
251 | if ( $url[ 'host' ] === "www.{$option_url[ 'host' ]}" ) { |
|
252 | // remove www if not present in option URL |
|
253 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
254 | } |
|
255 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
256 | // add www if present in option URL |
|
257 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
@@ 255-258 (lines=4) @@ | ||
252 | // remove www if not present in option URL |
|
253 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
254 | } |
|
255 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
256 | // add www if present in option URL |
|
257 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
258 | } |
|
259 | ||
260 | $normalized_url = "{$url['scheme']}://{$url['host']}"; |
|
261 | if ( isset( $url['path'] ) ) { |