Permalink
Browse files

Removed code duplication.

  • Loading branch information...
1 parent 01a795b commit f2a547cef6b83d81340a79c0229ba5f055e97af8 @mvied committed Feb 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WordPressHTTPS.php
View
@@ -95,7 +95,7 @@ public function getHttpUrl() {
*/
public function getHttpsUrl() {
if ( !isset($this->_https_url) ) {
- $this->_https_url = WordPressHTTPS_Url::fromString('https://' . parse_url(get_bloginfo('template_url'), PHP_URL_HOST) . parse_url(home_url('/'), PHP_URL_PATH));
+ $this->_https_url = clone $this->getHttpUrl()->setScheme('https');
if ( is_string($this->getSetting('ssl_host')) && $this->getSetting('ssl_host') != '' ) {
$ssl_host = rtrim($this->getSetting('ssl_host'), '/') . '/';

0 comments on commit f2a547c

Please sign in to comment.