Browse files

Added FORCE_SSL_ADMIN check to Parser.

  • Loading branch information...
1 parent 18d006d commit a577ff9d05f2e10306c782f29dd75f4a52c57a04 @mvied committed Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WordPressHTTPS/Module/Parser.php
View
2 lib/WordPressHTTPS/Module/Parser.php
@@ -369,7 +369,7 @@ public function fixLinksAndForms() {
}
}
}
- if ( $this->getPlugin()->getSetting('ssl_admin', $blog_id) && strpos($url_parts['path'], 'wp-admin') !== false && ( ! $this->getPlugin()->getSetting('ssl_host_diff', $blog_id) || ( $this->getPlugin()->getSetting('ssl_host_diff', $blog_id) && function_exists('is_user_logged_in') && is_user_logged_in() ) ) ) {
+ if ( ( $this->getPlugin()->getSetting('ssl_admin', $blog_id) || defined('FORCE_SSL_ADMIN') && constant('FORCE_SSL_ADMIN') ) && strpos($url_parts['path'], 'wp-admin') !== false && ( ! $this->getPlugin()->getSetting('ssl_host_diff', $blog_id) || ( $this->getPlugin()->getSetting('ssl_host_diff', $blog_id) && function_exists('is_user_logged_in') && is_user_logged_in() ) ) ) {
$force_ssl = true;
} else if ( is_null($force_ssl) && $this->getPlugin()->getSetting('exclusive_https', $blog_id) ) {
$force_ssl = false;

0 comments on commit a577ff9

Please sign in to comment.