Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed redundant isSsl check.

  • Loading branch information...
commit 6ad8d14eed9dde59ab0af35ade6cb50cf7395d1e 1 parent 1fca300
@mvied authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/WordPressHTTPS.php
  2. +1 −1  lib/WordPressHTTPS/Module/Hooks.php
View
2  lib/WordPressHTTPS.php
@@ -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');
}
}
View
2  lib/WordPressHTTPS/Module/Hooks.php
@@ -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');
}
Please sign in to comment.
Something went wrong with that request. Please try again.