Shield Security for WordPress - Version 6.1.1

Version Description

Latest Release = Released: 17th January, 2018

  • (v.1) FIXED: Verify link missing from the two-factor authentication verification email.
Download this release

Release Info

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

Code changes from version 6.1.0 to 6.1.1

icwp-wpsf.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Shield Security
4
  * Plugin URI: http://icwp.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
- * Version: 6.1.0
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages/
9
  * Author: iControlWP
3
  * Plugin Name: Shield Security
4
  * Plugin URI: http://icwp.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
+ * Version: 6.1.1
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages/
9
  * Author: iControlWP
plugin-spec.php CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "properties": {
3
- "version": "6.1.0",
4
  "slug_parent": "icwp",
5
  "slug_plugin": "wpsf",
6
  "human_name": "Shield",
1
  {
2
  "properties": {
3
+ "version": "6.1.1",
4
  "slug_parent": "icwp",
5
  "slug_plugin": "wpsf",
6
  "human_name": "Shield",
readme.txt CHANGED
@@ -6,7 +6,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: security, firewall, protect, spam, scan, recaptcha, two-factor authentication, login, 2FA, ithemes, wordfence, better wp security, all-in-one, lockdown, hack
7
  Requires at least: 3.5.0
8
  Tested up to: 4.9
9
- Stable tag: 6.1.0
10
 
11
  Protect your reputation, your customers' reputation, and your WordPress sites for free with Shield - the most powerful security system for WordPress
12
 
@@ -338,17 +338,13 @@ Technical support, and some newer options and features will not be available to
338
 
339
  You can [go Pro for just $1/month](http://icwp.io/aa). Technical support is available to premium clients only.
340
 
341
- = 6.1.0 Latest Release =
342
- *Released: 15th January, 2018* [Release Notes](http://icwp.io/ay)
343
 
344
- * **(v.0)** ADDED: 3x more Shield Wizards: Multi-factor Authentication, Core File Scanning, Unrecognised File Scanning.
345
- * **(v.0)** ADDED: You can now use regular expressions for file exclusions in the 'Unrecognised File Scanner'.
346
- * **(v.0)** CHANGED: File Scanner email notifications now link to the appropriate scanner wizard directly.
347
- * **(v.0)** IMPROVED: Plugin options pages restyling.
348
- * **(v.0)** IMPROVED: Plugin refactoring and improvements.
349
 
350
  = 6.1.0 Series =
351
- *Released: 15th January, 2018*
352
 
353
  * **(v.0)** ADDED: 3x more Shield Wizards: Multi-factor Authentication, Core File Scanning, Unrecognised File Scanning.
354
  * **(v.0)** ADDED: You can now use regular expressions for file exclusions in the 'Unrecognised File Scanner'.
6
  Tags: security, firewall, protect, spam, scan, recaptcha, two-factor authentication, login, 2FA, ithemes, wordfence, better wp security, all-in-one, lockdown, hack
7
  Requires at least: 3.5.0
8
  Tested up to: 4.9
9
+ Stable tag: 6.1.1
10
 
11
  Protect your reputation, your customers' reputation, and your WordPress sites for free with Shield - the most powerful security system for WordPress
12
 
338
 
339
  You can [go Pro for just $1/month](http://icwp.io/aa). Technical support is available to premium clients only.
340
 
341
+ = 6.1.1 Latest Release =
342
+ *Released: 17th January, 2018*
343
 
344
+ * **(v.1)** FIXED: Verify link missing from the two-factor authentication verification email.
 
 
 
 
345
 
346
  = 6.1.0 Series =
347
+ *Released: 15th January, 2018* - [Release Notes](http://icwp.io/ay)
348
 
349
  * **(v.0)** ADDED: 3x more Shield Wizards: Multi-factor Authentication, Core File Scanning, Unrecognised File Scanning.
350
  * **(v.0)** ADDED: You can now use regular expressions for file exclusions in the 'Unrecognised File Scanner'.
src/features/login_protect.php CHANGED
@@ -16,11 +16,11 @@ class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_Bas
16
 
17
  $oDp = $this->loadDP();
18
  // User has clicked a link in their email to verify they can send email.
19
- if ( $oDp->query( 'wpsf-action' ) == 'emailsendverify' ) {
20
  if ( $oDp->query( 'authkey' ) == $this->getCanEmailVerifyCode() ) {
21
  $this->setIfCanSendEmail( true )
22
  ->savePluginOptions();
23
- $this->loadWp()->redirectToLogin();
24
  }
25
  }
26
  }
@@ -76,8 +76,8 @@ class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_Bas
76
  */
77
  protected function generateCanSendEmailVerifyLink() {
78
  $aQueryArgs = array(
79
- 'authkey' => $this->getTwoAuthSecretKey(),
80
- 'wpsf-action' => 'emailsendverify'
81
  );
82
  return add_query_arg( $aQueryArgs, $this->loadWp()->getHomeUrl() );
83
  }
@@ -110,7 +110,9 @@ class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_Bas
110
  $aMessage = array(
111
  _wpsf__( 'Before enabling 2-factor email authentication for your WordPress site, you must verify you can receive this email.' ),
112
  _wpsf__( 'This verifies your website can send email and that your account can receive emails sent from your site.' ),
113
- sprintf( _wpsf__( 'Verify Code: %s' ), $sVerify ),
 
 
114
  );
115
  $sEmailSubject = sprintf( _wpsf__( 'Email Sending Verification For %s' ), $this->loadWp()->getHomeUrl() );
116
 
@@ -222,7 +224,7 @@ class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_Bas
222
  * @return bool
223
  */
224
  public function getIsEmailAuthenticationEnabled() {
225
- return $this->getIfCanSendEmail() && $this->getIsEmailAuthenticationOptionOn();
226
  }
227
 
228
  /**
@@ -246,13 +248,6 @@ class ICWP_WPSF_FeatureHandler_LoginProtect extends ICWP_WPSF_FeatureHandler_Bas
246
  return $this->getOpt( 'email_can_send_verified_at' );
247
  }
248
 
249
- /**
250
- * @return bool
251
- */
252
- public function getIfCanSendEmail() {
253
- return $this->getCanSendEmailVerifiedAt() != 0;
254
- }
255
-
256
  /**
257
  * @return bool
258
  */
16
 
17
  $oDp = $this->loadDP();
18
  // User has clicked a link in their email to verify they can send email.
19
+ if ( $oDp->query( 'shield_action' ) == 'emailsendverify' ) {
20
  if ( $oDp->query( 'authkey' ) == $this->getCanEmailVerifyCode() ) {
21
  $this->setIfCanSendEmail( true )
22
  ->savePluginOptions();
23
+ $this->loadWp()->doRedirect( $this->getUrl_AdminPage() );
24
  }
25
  }
26
  }
76
  */
77
  protected function generateCanSendEmailVerifyLink() {
78
  $aQueryArgs = array(
79
+ 'authkey' => $this->getCanEmailVerifyCode(),
80
+ 'shield_action' => 'emailsendverify'
81
  );
82
  return add_query_arg( $aQueryArgs, $this->loadWp()->getHomeUrl() );
83
  }
110
  $aMessage = array(
111
  _wpsf__( 'Before enabling 2-factor email authentication for your WordPress site, you must verify you can receive this email.' ),
112
  _wpsf__( 'This verifies your website can send email and that your account can receive emails sent from your site.' ),
113
+
114
+ sprintf( _wpsf__( "Using the guided wizard? Here's your code: %s" ), $sVerify ),
115
+ sprintf( _wpsf__( 'Or click the verify link: %s' ), $this->generateCanSendEmailVerifyLink() ),
116
  );
117
  $sEmailSubject = sprintf( _wpsf__( 'Email Sending Verification For %s' ), $this->loadWp()->getHomeUrl() );
118
 
224
  * @return bool
225
  */
226
  public function getIsEmailAuthenticationEnabled() {
227
+ return $this->getIfCanSendEmailVerified() && $this->getIsEmailAuthenticationOptionOn();
228
  }
229
 
230
  /**
248
  return $this->getOpt( 'email_can_send_verified_at' );
249
  }
250
 
 
 
 
 
 
 
 
251
  /**
252
  * @return bool
253
  */
src/processors/login_protect.php CHANGED
@@ -62,7 +62,7 @@ class ICWP_WPSF_Processor_LoginProtect extends ICWP_WPSF_Processor_BaseWpsf {
62
  /** @var ICWP_WPSF_FeatureHandler_LoginProtect $oFO */
63
  $oFO = $this->getFeature();
64
 
65
- if ( $oFO->getIsEmailAuthenticationOptionOn() && !$oFO->getIsEmailAuthenticationEnabled() && !$oFO->getIfCanSendEmail() ) {
66
  $aRenderData = array(
67
  'notice_attributes' => $aNoticeAttributes,
68
  'strings' => array(
62
  /** @var ICWP_WPSF_FeatureHandler_LoginProtect $oFO */
63
  $oFO = $this->getFeature();
64
 
65
+ if ( $oFO->getIsEmailAuthenticationOptionOn() && !$oFO->getIsEmailAuthenticationEnabled() && !$oFO->getIfCanSendEmailVerified() ) {
66
  $aRenderData = array(
67
  'notice_attributes' => $aNoticeAttributes,
68
  'strings' => array(