WordPress HTTPS (SSL) - Version 1.6.1

Version Description

  • Bug fix - front page redirection was causing issues when a static page was selected for the posts page.
Download this release

Release Info

Developer Mvied
Plugin Icon wp plugin WordPress HTTPS (SSL)
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6 to 1.6.1

Files changed (2) hide show
  1. readme.txt +6 -1
  2. wordpress-https.php +9 -9
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: encrypted, ssl, http, https
5
  Requires at least: 2.7.0
6
  Tested up to: 3.0.1
7
- Stable tag: 1.6
8
 
9
  Features: Force HTTPS on only certain pages. Fix partially encrypted errors. Disable WordPress from changing links to HTTPS. And more!
10
 
@@ -64,7 +64,10 @@ In most cases, yes. There are limitations to what this plugin can fix. Here are
64
 
65
  == Changelog ==
66
 
 
 
67
  = 1.6 =
 
68
  * Multiple enhancements to core functionality of plugin. Mostly just changing code to integrate more smoothely with WordPress.
69
  * Enhancements have been made to the plugin's settings page.
70
  = 1.5.2 =
@@ -95,6 +98,8 @@ In most cases, yes. There are limitations to what this plugin can fix. Here are
95
  * Initial Release.
96
 
97
  == Upgrade Notice ==
 
 
98
  = 1.0.1 =
99
  Version 1.0.1 fixes a bug in 1.0 that made it to release. Apologies!
100
  = 1.0 =
4
  Tags: encrypted, ssl, http, https
5
  Requires at least: 2.7.0
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.6.1
8
 
9
  Features: Force HTTPS on only certain pages. Fix partially encrypted errors. Disable WordPress from changing links to HTTPS. And more!
10
 
64
 
65
  == Changelog ==
66
 
67
+ = 1.6.1 =
68
+ * Bug fix - front page redirection was causing issues when a static page was selected for the posts page.
69
  = 1.6 =
70
+ * Added the ability to force the front page to HTTPS.
71
  * Multiple enhancements to core functionality of plugin. Mostly just changing code to integrate more smoothely with WordPress.
72
  * Enhancements have been made to the plugin's settings page.
73
  = 1.5.2 =
98
  * Initial Release.
99
 
100
  == Upgrade Notice ==
101
+ = 1.6.1 =
102
+ Version 1.6.1 fixes a bug with using a static page for the posts page.
103
  = 1.0.1 =
104
  Version 1.0.1 fixes a bug in 1.0 that made it to release. Apologies!
105
  = 1.0 =
wordpress-https.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WordPress HTTPS
4
  Plugin URI: http://mvied.com/projects/wordpress-https/
5
  Description: Force HTTPS on only certain pages. Fix partially encrypted errors. Disable WordPress from changing links to HTTPS. And more!
6
  Author: Mike Ems
7
- Version: 1.6
8
  Author URI: http://mvied.com/
9
  */
10
 
@@ -24,7 +24,7 @@ if ( !class_exists('WordPressHTTPS') ) {
24
  *
25
  * @var int
26
  */
27
- var $plugin_version = '1.6';
28
 
29
  /**
30
  * Plugin URL
@@ -155,7 +155,13 @@ if ( !class_exists('WordPressHTTPS') ) {
155
  */
156
  function check_https() {
157
  global $post;
158
- if ( is_single() || is_page() ) {
 
 
 
 
 
 
159
  if ( !is_ssl() ) {
160
  $forceSSL = get_post_meta($post->ID, 'force_ssl');
161
  if ($forceSSL) {
@@ -167,12 +173,6 @@ if ( !class_exists('WordPressHTTPS') ) {
167
  $this->redirect(false);
168
  }
169
  }
170
- } else if (is_front_page()) {
171
- if (get_option('wordpress-https_frontpage') == 1 && !is_ssl() ) {
172
- $this->redirect(true);
173
- } else if (get_option('wordpress-https_frontpage') != 1 && is_ssl()) {
174
- $this->redirect(false);
175
- }
176
  }
177
  }
178
 
4
  Plugin URI: http://mvied.com/projects/wordpress-https/
5
  Description: Force HTTPS on only certain pages. Fix partially encrypted errors. Disable WordPress from changing links to HTTPS. And more!
6
  Author: Mike Ems
7
+ Version: 1.6.1
8
  Author URI: http://mvied.com/
9
  */
10
 
24
  *
25
  * @var int
26
  */
27
+ var $plugin_version = '1.6.1';
28
 
29
  /**
30
  * Plugin URL
155
  */
156
  function check_https() {
157
  global $post;
158
+ if (is_front_page() && get_option('show_on_front') == 'posts') {
159
+ if (get_option('wordpress-https_frontpage') == 1 && !is_ssl() ) {
160
+ $this->redirect(true);
161
+ } else if (get_option('wordpress-https_frontpage') != 1 && is_ssl()) {
162
+ $this->redirect(false);
163
+ }
164
+ } else if ( is_single() || is_page() || is_front_page() || is_home() ) {
165
  if ( !is_ssl() ) {
166
  $forceSSL = get_post_meta($post->ID, 'force_ssl');
167
  if ($forceSSL) {
173
  $this->redirect(false);
174
  }
175
  }
 
 
 
 
 
 
176
  }
177
  }
178