Version Description
Download this release
Release Info
Developer | paultgoodchild |
Plugin | CloudFlare Flexible SSL |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- plugin.php +3 -3
- readme.txt +8 -4
- shieldprom.php +7 -7
plugin.php
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Plugin Name:
|
4 |
* Plugin URI: https://icwp.io/cloudflaresslpluginauthor
|
5 |
* Description: Fix For CloudFlare Flexible SSL Redirect Loop For WordPress
|
6 |
-
* Version: 1.3.
|
7 |
* Text Domain: cloudflare-flexible-ssl
|
8 |
* Author: One Dollar Plugin
|
9 |
* Author URI: https://icwp.io/cloudflaresslpluginauthor
|
10 |
*/
|
11 |
|
12 |
/**
|
13 |
-
* Copyright (c)
|
14 |
* All rights reserved.
|
15 |
* "CloudFlare Flexible SSL" plugin is distributed under the GNU General Public License, Version 2,
|
16 |
* June 1991. Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Plugin Name: Flexible SSL for CloudFlare
|
4 |
* Plugin URI: https://icwp.io/cloudflaresslpluginauthor
|
5 |
* Description: Fix For CloudFlare Flexible SSL Redirect Loop For WordPress
|
6 |
+
* Version: 1.3.1
|
7 |
* Text Domain: cloudflare-flexible-ssl
|
8 |
* Author: One Dollar Plugin
|
9 |
* Author URI: https://icwp.io/cloudflaresslpluginauthor
|
10 |
*/
|
11 |
|
12 |
/**
|
13 |
+
* Copyright (c) 2020 One Dollar Plugin <support@shieldsecurity.io>
|
14 |
* All rights reserved.
|
15 |
* "CloudFlare Flexible SSL" plugin is distributed under the GNU General Public License, Version 2,
|
16 |
* June 1991. Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
===
|
2 |
Contributors: onedollarplugin, paultgoodchild
|
3 |
Donate link: https://icwp.io/cloudflaresslpluginauthor
|
4 |
License: GPLv3
|
@@ -7,10 +7,10 @@ Tags: CloudFlare, SSL, Flexible SSL, Universal SSL, redirect loop, HTTPS, HTTP_X
|
|
7 |
Requires at least: 3.2.0
|
8 |
Requires PHP: 5.2
|
9 |
Recommended PHP: 7.0
|
10 |
-
Tested up to:
|
11 |
-
Stable tag: 1.3.
|
12 |
|
13 |
-
Fix For
|
14 |
|
15 |
== Description ==
|
16 |
|
@@ -52,6 +52,10 @@ n/a
|
|
52 |
|
53 |
For full installation instructions, please review the following article: [Installation Instructions](https://icwp.io/6z).
|
54 |
|
|
|
|
|
|
|
|
|
55 |
= 1.3.0 =
|
56 |
|
57 |
UPDATED: Update supported WordPress version to 5.1.
|
1 |
+
=== Flexible SSL for CloudFlare ===
|
2 |
Contributors: onedollarplugin, paultgoodchild
|
3 |
Donate link: https://icwp.io/cloudflaresslpluginauthor
|
4 |
License: GPLv3
|
7 |
Requires at least: 3.2.0
|
8 |
Requires PHP: 5.2
|
9 |
Recommended PHP: 7.0
|
10 |
+
Tested up to: 6.1
|
11 |
+
Stable tag: 1.3.1
|
12 |
|
13 |
+
Fix For Redirect Loops on WordPress with CloudFlare's Flexible/Universal SSL.
|
14 |
|
15 |
== Description ==
|
16 |
|
52 |
|
53 |
For full installation instructions, please review the following article: [Installation Instructions](https://icwp.io/6z).
|
54 |
|
55 |
+
= 1.3.1
|
56 |
+
|
57 |
+
UPDATED: Adjusting plugin naming for Trademark woes.
|
58 |
+
|
59 |
= 1.3.0 =
|
60 |
|
61 |
UPDATED: Update supported WordPress version to 5.1.
|
shieldprom.php
CHANGED
@@ -11,11 +11,11 @@ add_action( 'init', function () {
|
|
11 |
if ( empty( $nCurrentTime ) ) {
|
12 |
update_user_meta( $nCurrentId, $sMetaKey, 'Y' );
|
13 |
}
|
14 |
-
|
15 |
// set flag that the dialogue has been acknowledged closed
|
16 |
update_user_meta( $nCurrentId, $sMetaKey, time() );
|
17 |
}
|
18 |
-
|
19 |
add_action( 'admin_notices', 'odp_shield_promo_notice' );
|
20 |
add_action( 'network_admin_notices', 'odp_shield_promo_notice' );
|
21 |
}
|
@@ -23,10 +23,10 @@ add_action( 'init', function () {
|
|
23 |
} );
|
24 |
|
25 |
function odp_shield_promo_notice() {
|
26 |
-
$aText =
|
27 |
"Take a quick moment to checkout Shield Security - downloaded over 5Million times with a avg 5* satisfied rating.",
|
28 |
'Built by the <span style="text-decoration: underline">same people you trusted</span> to help you easily setup CloudFlare Flexible SSL.'
|
29 |
-
|
30 |
|
31 |
global $pagenow;
|
32 |
|
@@ -38,16 +38,16 @@ function odp_shield_promo_notice() {
|
|
38 |
ucwords( 'Looking for a fresh, powerful security plugin for WordPress?' ),
|
39 |
implode( '<br/>', $aText ),
|
40 |
add_query_arg(
|
41 |
-
|
42 |
's' => 'Shield+Security+for+WordPress+by+One+Dollar+Plugin',
|
43 |
'tab' => 'search',
|
44 |
'type' => 'term',
|
45 |
'flag' => 'odp_cfs_shield_notice'
|
46 |
-
|
47 |
network_admin_url( 'plugin-install.php' )
|
48 |
),
|
49 |
' → Click here to discover Shield Security for WordPress',
|
50 |
-
add_query_arg(
|
51 |
'Close This Notice'
|
52 |
);
|
53 |
}
|
11 |
if ( empty( $nCurrentTime ) ) {
|
12 |
update_user_meta( $nCurrentId, $sMetaKey, 'Y' );
|
13 |
}
|
14 |
+
elseif ( isset( $_GET[ 'flag' ] ) && $_GET[ 'flag' ] == $sMetaKey ) {
|
15 |
// set flag that the dialogue has been acknowledged closed
|
16 |
update_user_meta( $nCurrentId, $sMetaKey, time() );
|
17 |
}
|
18 |
+
elseif ( $nCurrentTime === 'Y' ) { // we can successfully set meta but haven't closed dialogue
|
19 |
add_action( 'admin_notices', 'odp_shield_promo_notice' );
|
20 |
add_action( 'network_admin_notices', 'odp_shield_promo_notice' );
|
21 |
}
|
23 |
} );
|
24 |
|
25 |
function odp_shield_promo_notice() {
|
26 |
+
$aText = [
|
27 |
"Take a quick moment to checkout Shield Security - downloaded over 5Million times with a avg 5* satisfied rating.",
|
28 |
'Built by the <span style="text-decoration: underline">same people you trusted</span> to help you easily setup CloudFlare Flexible SSL.'
|
29 |
+
];
|
30 |
|
31 |
global $pagenow;
|
32 |
|
38 |
ucwords( 'Looking for a fresh, powerful security plugin for WordPress?' ),
|
39 |
implode( '<br/>', $aText ),
|
40 |
add_query_arg(
|
41 |
+
[
|
42 |
's' => 'Shield+Security+for+WordPress+by+One+Dollar+Plugin',
|
43 |
'tab' => 'search',
|
44 |
'type' => 'term',
|
45 |
'flag' => 'odp_cfs_shield_notice'
|
46 |
+
],
|
47 |
network_admin_url( 'plugin-install.php' )
|
48 |
),
|
49 |
' → Click here to discover Shield Security for WordPress',
|
50 |
+
add_query_arg( [ 'flag' => 'odp_cfs_shield_notice' ], $pagenow ),
|
51 |
'Close This Notice'
|
52 |
);
|
53 |
}
|