Remove redundant logic from filter_SSL(). Props deltafactory. Fixes #19899.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-01-26 09:21:44 +00:00
parent e76ff1769e
commit e1068113ac

View File

@ -1944,7 +1944,7 @@ function filter_SSL( $url ) {
$arrURL = parse_url( $url );
if ( force_ssl_content() && is_ssl() ) {
if ( 'http' === $arrURL['scheme'] && 'https' !== $arrURL['scheme'] )
if ( 'http' === $arrURL['scheme'] )
$url = str_replace( $arrURL['scheme'], 'https', $url );
}