Shield Security for WordPress - Version 16.1.2

Version Description

Download this release

Release Info

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

Code changes from version 16.1.1 to 16.1.2

cl.json CHANGED
@@ -128,15 +128,19 @@
128
  ],
129
  "patches": [
130
  {
131
- "version": "1",
132
  "released_at": 1662985000,
133
  "items": [
134
  {
135
- "title": "Fix DB creation error on initialisation on a new website.",
 
 
 
 
136
  "type": "fixed"
137
  },
138
  {
139
- "title": "Fix error with Overview page when analysing the firewall grade, after removing Leading Schemas.",
140
  "type": "fixed"
141
  }
142
  ]
128
  ],
129
  "patches": [
130
  {
131
+ "version": "2",
132
  "released_at": 1662985000,
133
  "items": [
134
  {
135
+ "title": "Bug fix unable to start scans.",
136
+ "type": "fixed"
137
+ },
138
+ {
139
+ "title": "Bug fix DB creation error on initialisation on a new website.",
140
  "type": "fixed"
141
  },
142
  {
143
+ "title": "Bug fix error with Overview page when analysing the firewall grade, after removing Leading Schemas.",
144
  "type": "fixed"
145
  }
146
  ]
icwp-wpsf.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://shsec.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
- * Version: 16.1.1
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages
9
  * Author: Shield Security
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://shsec.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
+ * Version: 16.1.2
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages
9
  * Author: Shield Security
plugin-spec.php CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "16.1.1",
4
- "release_timestamp": 1662985000,
5
- "build": "202209.1201",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
@@ -400,8 +400,7 @@
400
  "version_upgrades": [
401
  "14.1.1",
402
  "14.1.4",
403
- "16.0.0",
404
- "16.0.4"
405
  ],
406
  "action_links": {
407
  "remove": null,
1
  {
2
  "properties": {
3
+ "version": "16.1.2",
4
+ "release_timestamp": 1662985001,
5
+ "build": "202209.1202",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
400
  "version_upgrades": [
401
  "14.1.1",
402
  "14.1.4",
403
+ "16.1.2"
 
404
  ],
405
  "action_links": {
406
  "remove": null,
plugin.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "16.1.1",
4
- "release_timestamp": 1662985000,
5
- "build": "202209.1201",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
@@ -400,8 +400,7 @@
400
  "version_upgrades": [
401
  "14.1.1",
402
  "14.1.4",
403
- "16.0.0",
404
- "16.0.4"
405
  ],
406
  "action_links": {
407
  "remove": null,
1
  {
2
  "properties": {
3
+ "version": "16.1.2",
4
+ "release_timestamp": 1662985001,
5
+ "build": "202209.1202",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
400
  "version_upgrades": [
401
  "14.1.1",
402
  "14.1.4",
403
+ "16.1.2"
 
404
  ],
405
  "action_links": {
406
  "remove": null,
readme.txt CHANGED
@@ -8,7 +8,7 @@ Requires at least: 4.7
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 6.0
11
- Stable tag: 16.1.1
12
 
13
  Bad Bots Are Your #1 Security Risk. Stop playing whack-a-mole with malware and vulnerabilities. Discover the advantage of putting real security before marketing.
14
 
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 6.0
11
+ Stable tag: 16.1.2
12
 
13
  Bad Bots Are Your #1 Security Risk. Stop playing whack-a-mole with malware and vulnerabilities. Discover the advantage of putting real security before marketing.
14
 
resources/js/shield/scans.js CHANGED
@@ -2,18 +2,18 @@ jQuery.fn.icwpWpsfScansStart = function ( aOptions ) {
2
 
3
  let startScans = function ( evt ) {
4
  evt.preventDefault();
5
- sendReq( { 'form_params': $oThis.serialize() } );
6
  return false;
7
  };
8
 
9
  let loadResultsPage = function ( evt ) {
10
- window.location.href = aOpts[ 'href_scans_results' ];
11
  };
12
 
13
  let sendReq = function ( param ) {
14
  iCWP_WPSF_BodyOverlay.show();
15
 
16
- jQuery.post( ajaxurl, jQuery.extend( aOpts[ 'ajax_scans_start' ], param ),
17
  function ( response ) {
18
 
19
  if ( response.success ) {
@@ -23,7 +23,7 @@ jQuery.fn.icwpWpsfScansStart = function ( aOptions ) {
23
  }
24
  else if ( response.data.scans_running ) {
25
  setTimeout( function () {
26
- jQuery( document ).icwpWpsfScansCheck( aOpts );
27
  }, 1000 );
28
  }
29
  else {
@@ -53,12 +53,12 @@ jQuery.fn.icwpWpsfScansStart = function ( aOptions ) {
53
 
54
  let initialise = function () {
55
  jQuery( document ).ready( function () {
56
- $oThis.on( 'submit', startScans );
57
  } );
58
  };
59
 
60
- let $oThis = this;
61
- let aOpts = jQuery.extend( {}, aOptions );
62
  initialise();
63
 
64
  return this;
2
 
3
  let startScans = function ( evt ) {
4
  evt.preventDefault();
5
+ sendReq( { 'form_params': $thisForm.serialize() } );
6
  return false;
7
  };
8
 
9
  let loadResultsPage = function ( evt ) {
10
+ window.location.href = opts[ 'href_scans_results' ];
11
  };
12
 
13
  let sendReq = function ( param ) {
14
  iCWP_WPSF_BodyOverlay.show();
15
 
16
+ jQuery.post( ajaxurl, jQuery.extend( opts[ 'ajax_scans_start' ], param ),
17
  function ( response ) {
18
 
19
  if ( response.success ) {
23
  }
24
  else if ( response.data.scans_running ) {
25
  setTimeout( function () {
26
+ jQuery( document ).icwpWpsfScansCheck( opts );
27
  }, 1000 );
28
  }
29
  else {
53
 
54
  let initialise = function () {
55
  jQuery( document ).ready( function () {
56
+ $thisForm.on( 'submit', startScans );
57
  } );
58
  };
59
 
60
+ let $thisForm = this;
61
+ let opts = jQuery.extend( {}, aOptions );
62
  initialise();
63
 
64
  return this;
src/lib/src/Modules/Base/Lib/Request/FormParams.php CHANGED
@@ -35,7 +35,9 @@ class FormParams {
35
 
36
  case 'none':
37
  default:
38
- $raw = '';
 
 
39
  break;
40
  }
41
 
35
 
36
  case 'none':
37
  default:
38
+ if ( empty( $raw ) ) {
39
+ $raw = '';
40
+ }
41
  break;
42
  }
43
 
src/lib/src/Modules/Base/Strings.php CHANGED
@@ -123,7 +123,7 @@ class Strings {
123
  'please_enable' => __( 'Please turn on this feature in the options.', 'wp-simple-firewall' ),
124
  'yyyymmdd' => __( 'YYYY-MM-DD', 'wp-simple-firewall' ),
125
 
126
- 'wphashes_token' => 'WPHashes.com API Token',
127
  'is_opt_importexport' => __( 'Is this option included with import/export?', 'wp-simple-firewall' ),
128
 
129
  'search_select' => [
123
  'please_enable' => __( 'Please turn on this feature in the options.', 'wp-simple-firewall' ),
124
  'yyyymmdd' => __( 'YYYY-MM-DD', 'wp-simple-firewall' ),
125
 
126
+ 'wphashes_token' => 'ShieldPRO API Token',
127
  'is_opt_importexport' => __( 'Is this option included with import/export?', 'wp-simple-firewall' ),
128
 
129
  'search_select' => [
src/lib/src/Modules/License/AdminNotices.php CHANGED
@@ -28,10 +28,10 @@ class AdminNotices extends Shield\Modules\Base\AdminNotices {
28
  'title' => sprintf( '%s: %s', __( 'Warning', 'wp-simple-firewall' ),
29
  sprintf( __( '%s API Token Missing', 'wp-simple-firewall' ), 'WPHashes.com' ) ),
30
  'messages' => [
31
- __( "This site appears to be activated for PRO, but there's been a problem obtaining an API token for WPHashes.com.", 'wp-simple-firewall' ),
32
  implode( ' ', [
33
- __( 'The WPHashes API is used for many premium features including Malware scanning.', 'wp-simple-firewall' ),
34
- __( 'Without a valid API Token, certain Premium features wont work as expected.', 'wp-simple-firewall' ),
35
  ] ),
36
  __( "Please contact us in our support channel if this doesn't sound right, or upgrade to PRO.", 'wp-simple-firewall' ),
37
  ],
28
  'title' => sprintf( '%s: %s', __( 'Warning', 'wp-simple-firewall' ),
29
  sprintf( __( '%s API Token Missing', 'wp-simple-firewall' ), 'WPHashes.com' ) ),
30
  'messages' => [
31
+ __( "This site appears to be activated for PRO, but there's been a problem obtaining an API token.", 'wp-simple-firewall' ),
32
  implode( ' ', [
33
+ __( 'The API is used for many premium features including Malware scanning.', 'wp-simple-firewall' ),
34
+ __( 'To try and resolve this, please go to the ShieldPRO section and click to Check License manually.', 'wp-simple-firewall' ),
35
  ] ),
36
  __( "Please contact us in our support channel if this doesn't sound right, or upgrade to PRO.", 'wp-simple-firewall' ),
37
  ],
src/lib/src/Modules/License/Upgrade.php CHANGED
@@ -18,4 +18,17 @@ class Upgrade extends Base\Upgrade {
18
  }
19
  }
20
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
18
  }
19
  }
20
  }
21
+
22
+ protected function upgrade_1612() {
23
+ $con = $this->getCon();
24
+ if ( $con->isPremiumActive() ) {
25
+ try {
26
+ $con->getModule_License()
27
+ ->getLicenseHandler()
28
+ ->verify( false, true );
29
+ }
30
+ catch ( \Exception $e ) {
31
+ }
32
+ }
33
+ }
34
  }