Skip to content

Commit

Permalink
Removed redundant isSsl check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Ems committed Jul 21, 2012
1 parent 1fca300 commit 6ad8d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WordPressHTTPS.php
Expand Up @@ -124,7 +124,7 @@ public function init() {
// Redirect login page. This is not pluggable due to the redirect methods used in wp-login.php
if ( ( $GLOBALS['pagenow'] == 'wp-login.php' ) ) {
setcookie(constant('TEST_COOKIE'), 'WP Cookie check', 0);
if ( $this->getSetting('ssl_admin') && ! $this->isSsl() ) {
if ( $this->getSetting('ssl_admin') ) {
$this->redirect('https');
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/WordPressHTTPS/Module/Hooks.php
Expand Up @@ -17,7 +17,7 @@ class WordPressHTTPS_Module_Hooks extends Mvied_Plugin_Module implements Mvied_P
*/
public function init() {
// Force SSL Admin
if ( ( is_admin() || $GLOBALS['pagenow'] == 'wp-login.php' ) && $this->getPlugin()->getSetting('ssl_admin') && ! $this->getPlugin()->isSsl() ) {
if ( ( is_admin() || $GLOBALS['pagenow'] == 'wp-login.php' ) && $this->getPlugin()->getSetting('ssl_admin') ) {
$this->getPlugin()->redirect('https');
}

Expand Down

0 comments on commit 6ad8d14

Please sign in to comment.