Permalink
Browse files

Ensured url fixing methods returned strings not objects.

  • Loading branch information...
1 parent 1781bf5 commit 4c4eaed9723c128840d3611c4790e396aabefdad @mvied committed Apr 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/WordPressHTTPS.php
View
@@ -192,7 +192,7 @@ public function makeUrlHttps( $string ) {
if ( $this->getSetting('ssl_host_diff') && strpos($url->getPath(), $this->getHttpsUrl()->getPath()) === false ) {
$url->setPath(str_replace($this->getHttpUrl()->getPath(), $this->getHttpsUrl()->getPath(), $url->getPath()));
}
- return $url;
+ return $url->toString();
} else {
return $string;
}
@@ -214,7 +214,7 @@ public function makeUrlHttp( $string ) {
if ( $this->getSetting('ssl_host_diff') && strpos($url->getPath(), $this->getHttpUrl()->getPath()) === false ) {
$url->setPath(str_replace($this->getHttpsUrl()->getPath(), $this->getHttpUrl()->getPath(), $url->getPath()));
}
- return $url;
+ return $url->toString();
} else {
return $string;
}

0 comments on commit 4c4eaed

Please sign in to comment.