Version Description
- Adding exit();
- Compatible to 4.0.0
Download this release
Release Info
Developer | phikai |
Plugin | WordPress Force HTTPS |
Version | 0.1.2 |
Comparing to | |
See all releases |
Code changes from version 0.1.1 to 0.1.2
- readme.txt +6 -2
- wordpress-force-https.php +2 -1
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: phikai
|
3 |
Tags: ssl, https, http, secure
|
4 |
Requires at least: 3.5
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 0.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -36,5 +36,9 @@ None yet!
|
|
36 |
|
37 |
== Changelog ==
|
38 |
|
|
|
|
|
|
|
|
|
39 |
= 0.1.1 =
|
40 |
* Initial Release
|
2 |
Contributors: phikai
|
3 |
Tags: ssl, https, http, secure
|
4 |
Requires at least: 3.5
|
5 |
+
Tested up to: 4.0.0
|
6 |
+
Stable tag: 0.1.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
36 |
|
37 |
== Changelog ==
|
38 |
|
39 |
+
= 0.1.2 =
|
40 |
+
* Adding exit();
|
41 |
+
* Compatible to 4.0.0
|
42 |
+
|
43 |
= 0.1.1 =
|
44 |
* Initial Release
|
wordpress-force-https.php
CHANGED
@@ -6,12 +6,13 @@ Plugin URI: https://github.com/phikai/wordpress-force-https
|
|
6 |
Description: Forces all of the things to HTTPS
|
7 |
Author: A. Kai Armstrong
|
8 |
Author URI: http://www.kaiarmstrong.com
|
9 |
-
Version: 0.1.
|
10 |
*/
|
11 |
|
12 |
function toz_force_https () {
|
13 |
if ( !is_ssl() ) {
|
14 |
wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 301 );
|
|
|
15 |
}
|
16 |
}
|
17 |
add_action ( 'template_redirect', 'toz_force_https', 1 );
|
6 |
Description: Forces all of the things to HTTPS
|
7 |
Author: A. Kai Armstrong
|
8 |
Author URI: http://www.kaiarmstrong.com
|
9 |
+
Version: 0.1.2
|
10 |
*/
|
11 |
|
12 |
function toz_force_https () {
|
13 |
if ( !is_ssl() ) {
|
14 |
wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 301 );
|
15 |
+
exit();
|
16 |
}
|
17 |
}
|
18 |
add_action ( 'template_redirect', 'toz_force_https', 1 );
|