@@ 192-195 (lines=4) @@ | ||
189 | return $url; |
|
190 | } |
|
191 | ||
192 | if ( $url[ 'host' ] === "www.{$option_url[ 'host' ]}" ) { |
|
193 | // remove www if not present in option URL |
|
194 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
195 | } |
|
196 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
197 | // add www if present in option URL |
|
198 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
@@ 196-199 (lines=4) @@ | ||
193 | // remove www if not present in option URL |
|
194 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
195 | } |
|
196 | if ( $option_url[ 'host' ] === "www.{$url[ 'host' ]}" ) { |
|
197 | // add www if present in option URL |
|
198 | $url[ 'host' ] = $option_url[ 'host' ]; |
|
199 | } |
|
200 | ||
201 | $normalized_url = "{$url['scheme']}://{$url['host']}"; |
|
202 | if ( isset( $url['path'] ) ) { |