@@ 61-64 (lines=4) @@ | ||
58 | return $url; |
|
59 | } |
|
60 | ||
61 | if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
|
62 | // remove www if not present in option URL. |
|
63 | $url['host'] = $option_url['host']; |
|
64 | } |
|
65 | if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
|
66 | // add www if present in option URL. |
|
67 | $url['host'] = $option_url['host']; |
|
@@ 65-68 (lines=4) @@ | ||
62 | // remove www if not present in option URL. |
|
63 | $url['host'] = $option_url['host']; |
|
64 | } |
|
65 | if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
|
66 | // add www if present in option URL. |
|
67 | $url['host'] = $option_url['host']; |
|
68 | } |
|
69 | ||
70 | $normalized_url = "{$url['scheme']}://{$url['host']}"; |
|
71 | if ( isset( $url['path'] ) ) { |