Version Description
- Changed the redirection check to use
template_redirect
hook rather thanget_header
.
Download this release
Release Info
Developer | Mvied |
Plugin | WordPress HTTPS (SSL) |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- readme.txt +3 -1
- wordpress-https.php +6 -7
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,6 +64,8 @@ In most cases, yes. There are limitations to what this plugin can fix. Here are
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
67 |
= 1.6.2 =
|
68 |
* Tag links were not being set back to HTTP when the 'Disable Automatic HTTPS' option was enabled.
|
69 |
= 1.6.1 =
|
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.3
|
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.3 =
|
68 |
+
* Changed the redirection check to use `template_redirect` hook rather than `get_header`.
|
69 |
= 1.6.2 =
|
70 |
* Tag links were not being set back to HTTP when the 'Disable Automatic HTTPS' option was enabled.
|
71 |
= 1.6.1 =
|
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
|
@@ -75,8 +75,6 @@ if ( !class_exists('WordPressHTTPS') ) {
|
|
75 |
|
76 |
// Load on Settings page
|
77 |
if (@$_GET['page'] == 'wordpress-https') {
|
78 |
-
wp_enqueue_style('widgets');
|
79 |
-
|
80 |
wp_enqueue_script('jquery-form', $this->plugin_url . '/js/jquery.form.js', array('jquery'), '2.47', true);
|
81 |
wp_enqueue_script('wordpress-https', $this->plugin_url . '/js/admin.js', array('jquery'), $this->plugin_version, true);
|
82 |
wp_enqueue_style('wordpress-https', $this->plugin_url . '/css/admin.css', $this->plugin_version, true);
|
@@ -89,8 +87,8 @@ if ( !class_exists('WordPressHTTPS') ) {
|
|
89 |
}
|
90 |
}
|
91 |
} else {
|
92 |
-
// If not admin, check to see if the page needs to be redirected
|
93 |
-
add_action('
|
94 |
}
|
95 |
|
96 |
// Filter HTTPS from links in WP 3.0+
|
@@ -112,6 +110,7 @@ if ( !class_exists('WordPressHTTPS') ) {
|
|
112 |
|
113 |
// Start output buffering
|
114 |
add_action('plugins_loaded', array(&$this, 'buffer_start'));
|
|
|
115 |
// End output buffering
|
116 |
//add_action('shutdown', array(&$this, 'buffer_end'));
|
117 |
}
|
@@ -180,7 +179,7 @@ if ( !class_exists('WordPressHTTPS') ) {
|
|
180 |
/**
|
181 |
* Redirects page to HTTP or HTTPS accordingly
|
182 |
*
|
183 |
-
* @param
|
184 |
* @return void
|
185 |
*/
|
186 |
function redirect($ssl = true) {
|
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.3
|
8 |
Author URI: http://mvied.com/
|
9 |
*/
|
10 |
|
24 |
*
|
25 |
* @var int
|
26 |
*/
|
27 |
+
var $plugin_version = '1.6.3';
|
28 |
|
29 |
/**
|
30 |
* Plugin URL
|
75 |
|
76 |
// Load on Settings page
|
77 |
if (@$_GET['page'] == 'wordpress-https') {
|
|
|
|
|
78 |
wp_enqueue_script('jquery-form', $this->plugin_url . '/js/jquery.form.js', array('jquery'), '2.47', true);
|
79 |
wp_enqueue_script('wordpress-https', $this->plugin_url . '/js/admin.js', array('jquery'), $this->plugin_version, true);
|
80 |
wp_enqueue_style('wordpress-https', $this->plugin_url . '/css/admin.css', $this->plugin_version, true);
|
87 |
}
|
88 |
}
|
89 |
} else {
|
90 |
+
// If not admin page, check to see if the page needs to be redirected
|
91 |
+
add_action('template_redirect', array(&$this, 'check_https'));
|
92 |
}
|
93 |
|
94 |
// Filter HTTPS from links in WP 3.0+
|
110 |
|
111 |
// Start output buffering
|
112 |
add_action('plugins_loaded', array(&$this, 'buffer_start'));
|
113 |
+
|
114 |
// End output buffering
|
115 |
//add_action('shutdown', array(&$this, 'buffer_end'));
|
116 |
}
|
179 |
/**
|
180 |
* Redirects page to HTTP or HTTPS accordingly
|
181 |
*
|
182 |
+
* @param boolean $ssl
|
183 |
* @return void
|
184 |
*/
|
185 |
function redirect($ssl = true) {
|