Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added FORCE_SSL_ADMIN check to Parser.

  • Loading branch information...
commit a577ff9d05f2e10306c782f29dd75f4a52c57a04 1 parent 18d006d
@mvied authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.