Skip to content

Commit

Permalink
Removed code duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Ems committed Feb 17, 2013
1 parent 01a795b commit f2a547c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WordPressHTTPS.php
Expand Up @@ -95,7 +95,7 @@ public function getHttpUrl() {
*/ */
public function getHttpsUrl() { public function getHttpsUrl() {
if ( !isset($this->_https_url) ) { 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') != '' ) { if ( is_string($this->getSetting('ssl_host')) && $this->getSetting('ssl_host') != '' ) {
$ssl_host = rtrim($this->getSetting('ssl_host'), '/') . '/'; $ssl_host = rtrim($this->getSetting('ssl_host'), '/') . '/';
Expand Down

0 comments on commit f2a547c

Please sign in to comment.