@@ 491-494 (lines=4) @@ | ||
488 | return $url; |
|
489 | } |
|
490 | ||
491 | if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
|
492 | // remove www if not present in option URL. |
|
493 | $url['host'] = $option_url['host']; |
|
494 | } |
|
495 | if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
|
496 | // add www if present in option URL. |
|
497 | $url['host'] = $option_url['host']; |
|
@@ 495-498 (lines=4) @@ | ||
492 | // remove www if not present in option URL. |
|
493 | $url['host'] = $option_url['host']; |
|
494 | } |
|
495 | if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
|
496 | // add www if present in option URL. |
|
497 | $url['host'] = $option_url['host']; |
|
498 | } |
|
499 | ||
500 | $normalized_url = "{$url['scheme']}://{$url['host']}"; |
|
501 | if ( isset( $url['path'] ) ) { |