@@ 407-410 (lines=4) @@ | ||
404 | return $url; |
|
405 | } |
|
406 | ||
407 | if ( "www.{$option_url[ 'host' ]}" === $url['host'] ) { |
|
408 | // remove www if not present in option URL. |
|
409 | $url['host'] = $option_url['host']; |
|
410 | } |
|
411 | if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
|
412 | // add www if present in option URL. |
|
413 | $url['host'] = $option_url['host']; |
|
@@ 411-414 (lines=4) @@ | ||
408 | // remove www if not present in option URL. |
|
409 | $url['host'] = $option_url['host']; |
|
410 | } |
|
411 | if ( "www.{$url[ 'host' ]}" === $option_url['host'] ) { |
|
412 | // add www if present in option URL. |
|
413 | $url['host'] = $option_url['host']; |
|
414 | } |
|
415 | ||
416 | $normalized_url = "{$url['scheme']}://{$url['host']}"; |
|
417 | if ( isset( $url['path'] ) ) { |