From c67d273f1f48d43fdff75ce3f955e3f4921031f3 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Thu, 26 Jan 2012 09:21:44 +0000 Subject: [PATCH] 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 --- 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 ); }