Remove redundant logic from filter_SSL(). Props deltafactory. Fixes #19899.
git-svn-id: https://develop.svn.wordpress.org/trunk@19759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a958005166
commit
c67d273f1f
|
@ -1944,7 +1944,7 @@ function filter_SSL( $url ) {
|
||||||
$arrURL = parse_url( $url );
|
$arrURL = parse_url( $url );
|
||||||
|
|
||||||
if ( force_ssl_content() && is_ssl() ) {
|
if ( force_ssl_content() && is_ssl() ) {
|
||||||
if ( 'http' === $arrURL['scheme'] && 'https' !== $arrURL['scheme'] )
|
if ( 'http' === $arrURL['scheme'] )
|
||||||
$url = str_replace( $arrURL['scheme'], 'https', $url );
|
$url = str_replace( $arrURL['scheme'], 'https', $url );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue