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