Permalink
Browse files

Moved port removal up a level.

  • Loading branch information...
1 parent 885d2e8 commit f8e0c71618fe9b4d0feaf2c81074ba938c453467 @mvied committed Mar 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WordPressHTTPS.php
View
@@ -304,10 +304,10 @@ public function makeUrlHttps( $string ) {
} else {
$updated = clone $url;
$updated = WordPressHTTPS_Url::fromString( apply_filters('https_external_url', $updated->toString()) );
+ $updated->setPort(null);
if ( @in_array($updated->toString(), $this->getSetting('secure_external_urls')) == false && @in_array($updated->toString(), $this->getSetting('unsecure_external_urls')) == false ) {
$test = clone $updated;
$test->setScheme('https');
- $test->setPort(null);
if ( $test->isValid() ) {
// Cache this URL as available over HTTPS for future reference
$this->addSecureExternalUrl($updated->toString());

0 comments on commit f8e0c71

Please sign in to comment.