From e1068113acf03592a48baece86fd9b091392bab5 Mon Sep 17 00:00:00 2001 From: duck_ Date: Thu, 26 Jan 2012 09:21:44 +0000 Subject: [PATCH] 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 --- wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 54b0806b6e..34d331000f 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -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 ); }