Shield Security for WordPress - Version 6.9.4

Version Description

  • Current Release = Released: 13th September, 2018

  • (v.4) FIXED: Bug where 2FA by email user roles get reset in some cases.

  • (v.3) ADDED: Support for AppleBot in the Traffic Watcher.

  • (v.3) FIXED: Plugin/Theme Guard bug not capturing updates correctly.

  • (v.3) FIXED: Google Authenticator could not be removed from profile.

Download this release

Release Info

Developer paultgoodchild
Plugin Icon 128x128 Shield Security for WordPress
Version 6.9.4
Comparing to
See all releases

Code changes from version 6.9.3 to 6.9.4

Files changed (4) hide show
  1. icwp-wpsf.php +1 -1
  2. plugin-spec.php +2 -2
  3. readme.txt +4 -3
  4. src/features/login_protect.php +14 -15
icwp-wpsf.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://icwp.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
- * Version: 6.9.3
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages/
9
  * Author: One Dollar Plugin
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://icwp.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
+ * Version: 6.9.4
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages/
9
  * Author: One Dollar Plugin
plugin-spec.php CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "properties": {
3
- "version": "6.9.3",
4
- "release_timestamp": 1536678135,
5
  "slug_parent": "icwp",
6
  "slug_plugin": "wpsf",
7
  "human_name": "Shield",
1
  {
2
  "properties": {
3
+ "version": "6.9.4",
4
+ "release_timestamp": 1536825761,
5
  "slug_parent": "icwp",
6
  "slug_plugin": "wpsf",
7
  "human_name": "Shield",
readme.txt CHANGED
@@ -8,7 +8,7 @@ Requires at least: 3.5.0
8
  Requires PHP: 5.2.4
9
  Recommended PHP: 5.4
10
  Tested up to: 4.9
11
- Stable tag: 6.9.3
12
 
13
  Complete All-In-One Protection for your WordPress sites, that makes Security Easy for Everyone - it doesn't have to be hard anymore.
14
 
@@ -352,9 +352,10 @@ You will always be able to use Shield Security and its free features in-full.
352
 
353
  [Go Pro for just $1/month](https://icwp.io/aa).
354
 
355
- = 6.9.3 - Current Release =
356
- *Released: 11th September, 2018*
357
 
 
358
  * **(v.3)** ADDED: Support for AppleBot in the [Traffic Watcher](https://icwp.io/dc).
359
  * **(v.3)** FIXED: [Plugin/Theme Guard](https://icwp.io/bq) bug not capturing updates correctly.
360
  * **(v.3)** FIXED: Google Authenticator could not be removed from profile.
8
  Requires PHP: 5.2.4
9
  Recommended PHP: 5.4
10
  Tested up to: 4.9
11
+ Stable tag: 6.9.4
12
 
13
  Complete All-In-One Protection for your WordPress sites, that makes Security Easy for Everyone - it doesn't have to be hard anymore.
14
 
352
 
353
  [Go Pro for just $1/month](https://icwp.io/aa).
354
 
355
+ = 6.9.4 - Current Release =
356
+ *Released: 13th September, 2018*
357
 
358
+ * **(v.4)** FIXED: Bug where 2FA by email user roles get reset in some cases.
359
  * **(v.3)** ADDED: Support for AppleBot in the [Traffic Watcher](https://icwp.io/dc).
360
  * **(v.3)** FIXED: [Plugin/Theme Guard](https://icwp.io/bq) bug not capturing updates correctly.
361
  * **(v.3)** FIXED: Google Authenticator could not be removed from profile.
src/features/login_protect.php CHANGED
@@ -8,6 +8,20 @@ require_once( dirname( __FILE__ ).'/base_wpsf.php' );
8
 
9
  class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_BaseWpsf {
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  /**
12
  * A action added to WordPress 'init' hook
13
  */
@@ -60,21 +74,6 @@ class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_Bas
60
  $this->cleanLoginUrlPath();
61
  }
62
 
63
- /**
64
- */
65
- protected function updateHandler() {
66
-
67
- // Migrate from levels to roles
68
- $aNew = array();
69
- foreach ( $this->loadWpUsers()->getLevelToRoleMap() as $nLevel => $sRole ) {
70
- if ( in_array( $nLevel, $this->getEmail2FaRoles() ) ) {
71
- $aNew[] = $sRole;
72
- }
73
- }
74
- $this->setOpt( 'two_factor_auth_user_roles', $aNew )
75
- ->savePluginOptions();
76
- }
77
-
78
  /**
79
  * @return string
80
  */
8
 
9
  class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_BaseWpsf {
10
 
11
+ /**
12
+ * TODO remove
13
+ */
14
+ protected function updateHandler() {
15
+ if ( $this->getConn()->getVersion() == '6.9.4' ) {
16
+ if ( $this->getIfCanSendEmailVerified() && $this->isEmailAuthenticationOptionOn() ) {
17
+ $aRoles = $this->getEmail2FaRoles();
18
+ if ( count( $aRoles ) == 1 && in_array( 'subscriber', $aRoles ) ) {
19
+ $this->getOptionsVo()->resetOptToDefault( 'two_factor_auth_user_roles' );
20
+ }
21
+ }
22
+ }
23
+ }
24
+
25
  /**
26
  * A action added to WordPress 'init' hook
27
  */
74
  $this->cleanLoginUrlPath();
75
  }
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  /**
78
  * @return string
79
  */