@@ 149-152 (lines=4) @@ | ||
146 | return $url; |
|
147 | } |
|
148 | ||
149 | if ( $url[ 'host' ] === "www.{$option_url[ 'host' ]}" ) { |
|
150 | // remove www if not present in option URL |
|
151 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
152 | } |
|
153 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
154 | // add www if present in option URL |
|
155 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
@@ 153-156 (lines=4) @@ | ||
150 | // remove www if not present in option URL |
|
151 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
152 | } |
|
153 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
154 | // add www if present in option URL |
|
155 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
156 | } |
|
157 | ||
158 | $normalized_url = "{$url['scheme']}://{$url['host']}"; |
|
159 | if ( isset( $url['path'] ) ) { |