Shield Security for WordPress - Version 7.0.2

Version Description

  • Current Release = Released: 28th January, 2018 - Release Notes
Download this release

Release Info

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

Code changes from version 7.0.1 to 7.0.2

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: 7.0.1
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: 7.0.2
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": "7.0.1",
4
- "release_timestamp": 1548682000,
5
  "slug_parent": "icwp",
6
  "slug_plugin": "wpsf",
7
  "human_name": "Shield",
1
  {
2
  "properties": {
3
+ "version": "7.0.2",
4
+ "release_timestamp": 1548689761,
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.4.0
9
  Recommended PHP: 7.0
10
  Tested up to: 5.1
11
- Stable tag: 7.0.1
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,7 +352,7 @@ 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
- = 7.0.1 - Current Release =
356
  *Released: 28th January, 2018* - [Release Notes](https://icwp.io/ef)
357
 
358
  = 7.0 - Series =
8
  Requires PHP: 5.4.0
9
  Recommended PHP: 7.0
10
  Tested up to: 5.1
11
+ Stable tag: 7.0.2
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
+ = 7.0.2 - Current Release =
356
  *Released: 28th January, 2018* - [Release Notes](https://icwp.io/ef)
357
 
358
  = 7.0 - Series =
resources/js/global-plugin.js CHANGED
@@ -249,25 +249,19 @@ var iCWP_WPSF_Autoupdates = new function () {
249
  var iCWP_WPSF_Growl = new function () {
250
 
251
  this.showMessage = function ( sMessage, bSuccess ) {
 
 
 
 
 
 
 
252
 
253
- if ( true ) {
254
- iCWP_WPSF_Toaster.showMessage( sMessage, bSuccess );
255
- }
256
- else {
257
- var $oDiv = createDynDiv( bSuccess ? 'success' : 'failed' );
258
- $oDiv.show().addClass( 'shown' );
259
- setTimeout( function () {
260
- $oDiv.html( sMessage );
261
- }, 380 );
262
  setTimeout( function () {
263
- $oDiv.css( 'width', 0 );
264
-
265
- setTimeout( function () {
266
- $oDiv.html( '' )
267
- .fadeOut();
268
- }, 500 );
269
- }, 4000 );
270
- }
271
  };
272
 
273
  /**
@@ -281,29 +275,6 @@ var iCWP_WPSF_Growl = new function () {
281
 
282
  }();
283
 
284
- var iCWP_WPSF_Toaster = new function () {
285
-
286
- this.showMessage = function ( sMessage, bSuccess ) {
287
- var $oNewToast = jQuery( '#icwpWpsfOptionsToast' );
288
- var $oToastBody = jQuery( '.toast-body', $oNewToast );
289
- $oToastBody.html( '' );
290
-
291
- jQuery( '<span></span>' ).html( sMessage )
292
- .addClass( bSuccess ? 'text-dark' : 'text-danger' )
293
- .appendTo( $oToastBody );
294
- $oNewToast.toast( 'show' );
295
- };
296
-
297
- this.initialise = function () {
298
- jQuery( document ).ready( function () {
299
- jQuery( '.toast.icwp-toaster' ).toast( {
300
- autohide: true,
301
- delay: 3000
302
- } );
303
- } );
304
- };
305
- }();
306
-
307
  var iCWP_WPSF_BodyOverlay = new function () {
308
 
309
  this.show = function () {
@@ -327,7 +298,6 @@ var iCWP_WPSF_BodyOverlay = new function () {
327
 
328
  // iCWP_WPSF_Autoupdates.initialise();
329
  iCWP_WPSF_BodyOverlay.initialise();
330
- iCWP_WPSF_Toaster.initialise();
331
  iCWP_WPSF_SecurityAdmin.initialise();
332
 
333
  if ( typeof icwp_wpsf_vars_plugin !== 'undefined' ) {
249
  var iCWP_WPSF_Growl = new function () {
250
 
251
  this.showMessage = function ( sMessage, bSuccess ) {
252
+ var $oDiv = createDynDiv( bSuccess ? 'success' : 'failed' );
253
+ $oDiv.show().addClass( 'shown' );
254
+ setTimeout( function () {
255
+ $oDiv.html( sMessage );
256
+ }, 380 );
257
+ setTimeout( function () {
258
+ $oDiv.css( 'width', 0 );
259
 
 
 
 
 
 
 
 
 
 
260
  setTimeout( function () {
261
+ $oDiv.html( '' )
262
+ .fadeOut();
263
+ }, 500 );
264
+ }, 4000 );
 
 
 
 
265
  };
266
 
267
  /**
275
 
276
  }();
277
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  var iCWP_WPSF_BodyOverlay = new function () {
279
 
280
  this.show = function () {
298
 
299
  // iCWP_WPSF_Autoupdates.initialise();
300
  iCWP_WPSF_BodyOverlay.initialise();
 
301
  iCWP_WPSF_SecurityAdmin.initialise();
302
 
303
  if ( typeof icwp_wpsf_vars_plugin !== 'undefined' ) {
resources/js/plugin.js CHANGED
@@ -47,6 +47,30 @@ var iCWP_WPSF_OptionsPages = new function () {
47
 
48
  }();
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  var iCWP_WPSF_OptionsFormSubmit = new function () {
51
 
52
  var bRequestCurrentlyRunning = false;
@@ -97,7 +121,8 @@ var iCWP_WPSF_OptionsFormSubmit = new function () {
97
  else {
98
  sMessage = oResponse.data.message;
99
  }
100
- iCWP_WPSF_Growl.showMessage( sMessage, oResponse.success );
 
101
  }
102
  ).always( function () {
103
  bRequestCurrentlyRunning = false;
@@ -145,7 +170,8 @@ if ( typeof icwp_wpsf_vars_secadmin !== 'undefined' && icwp_wpsf_vars_secadmin.t
145
 
146
  if ( !bWarningShown && nLeft < 20 && nLeft > 8 ) {
147
  bWarningShown = true;
148
- iCWP_WPSF_Growl.showMessage( icwp_wpsf_vars_secadmin.strings.nearly, false );
 
149
  }
150
 
151
  scheduleSecAdminCheck();
@@ -161,7 +187,8 @@ if ( typeof icwp_wpsf_vars_secadmin !== 'undefined' && icwp_wpsf_vars_secadmin.t
161
  // Do nothing!
162
  }
163
  }, 1500 );
164
- iCWP_WPSF_Growl.showMessage( icwp_wpsf_vars_secadmin.strings.expired, oResponse.success );
 
165
  }
166
 
167
  }
47
 
48
  }();
49
 
50
+ var iCWP_WPSF_Toaster = new function () {
51
+
52
+ this.showMessage = function ( sMessage, bSuccess ) {
53
+ var $oNewToast = jQuery( '#icwpWpsfOptionsToast' );
54
+ var $oToastBody = jQuery( '.toast-body', $oNewToast );
55
+ $oToastBody.html( '' );
56
+
57
+ jQuery( '<span></span>' ).html( sMessage )
58
+ .addClass( bSuccess ? 'text-dark' : 'text-danger' )
59
+ .appendTo( $oToastBody );
60
+ $oNewToast.toast( 'show' );
61
+ };
62
+
63
+ this.initialise = function () {
64
+ jQuery( document ).ready( function () {
65
+ jQuery( '.toast.icwp-toaster' ).toast( {
66
+ autohide: true,
67
+ delay: 3000
68
+ } );
69
+ } );
70
+ };
71
+ }();
72
+ iCWP_WPSF_Toaster.initialise();
73
+
74
  var iCWP_WPSF_OptionsFormSubmit = new function () {
75
 
76
  var bRequestCurrentlyRunning = false;
121
  else {
122
  sMessage = oResponse.data.message;
123
  }
124
+ iCWP_WPSF_Toaster.showMessage( sMessage, oResponse.success );
125
+ // iCWP_WPSF_Growl.showMessage( sMessage, oResponse.success );
126
  }
127
  ).always( function () {
128
  bRequestCurrentlyRunning = false;
170
 
171
  if ( !bWarningShown && nLeft < 20 && nLeft > 8 ) {
172
  bWarningShown = true;
173
+ iCWP_WPSF_Toaster.showMessage( icwp_wpsf_vars_secadmin.strings.nearly, false );
174
+ // iCWP_WPSF_Growl.showMessage( icwp_wpsf_vars_secadmin.strings.nearly, false );
175
  }
176
 
177
  scheduleSecAdminCheck();
187
  // Do nothing!
188
  }
189
  }, 1500 );
190
+ iCWP_WPSF_Toaster.showMessage( icwp_wpsf_vars_secadmin.strings.expired, oResponse.success );
191
+ // iCWP_WPSF_Growl.showMessage( icwp_wpsf_vars_secadmin.strings.expired, oResponse.success );
192
  }
193
 
194
  }
resources/js/shield-scans.js CHANGED
@@ -16,13 +16,13 @@ jQuery.fn.icwpWpsfStartScans = function ( aOptions ) {
16
  function ( oResponse ) {
17
 
18
  if ( oResponse.success ) {
19
- iCWP_WPSF_Growl.showMessage( oResponse.data.message, oResponse.success );
20
  if ( oResponse.data.page_reload ) {
21
  location.reload( true );
22
  }
23
  else {
24
  plugin.options[ 'table' ].reloadTable();
25
- iCWP_WPSF_Growl.showMessage( oResponse.data.message, oResponse.success );
26
  }
27
  }
28
  else {
16
  function ( oResponse ) {
17
 
18
  if ( oResponse.success ) {
19
+ iCWP_WPSF_Toaster.showMessage( oResponse.data.message, oResponse.success );
20
  if ( oResponse.data.page_reload ) {
21
  location.reload( true );
22
  }
23
  else {
24
  plugin.options[ 'table' ].reloadTable();
25
+ iCWP_WPSF_Toaster.showMessage( oResponse.data.message, oResponse.success );
26
  }
27
  }
28
  else {
resources/js/shield-tables.js CHANGED
@@ -238,13 +238,13 @@ jQuery.fn.icwpWpsfTableWithFilter = function ( aOptions ) {
238
  function ( oResponse ) {
239
 
240
  if ( oResponse.success ) {
241
- iCWP_WPSF_Growl.showMessage( oResponse.data.message, oResponse.success );
242
  if ( oResponse.data.page_reload ) {
243
  location.reload( true );
244
  }
245
  else {
246
  plugin.options[ 'table' ].reloadTable();
247
- iCWP_WPSF_Growl.showMessage( oResponse.data.message, oResponse.success );
248
  }
249
  }
250
  else {
238
  function ( oResponse ) {
239
 
240
  if ( oResponse.success ) {
241
+ iCWP_WPSF_Toaster.showMessage( oResponse.data.message, oResponse.success );
242
  if ( oResponse.data.page_reload ) {
243
  location.reload( true );
244
  }
245
  else {
246
  plugin.options[ 'table' ].reloadTable();
247
+ iCWP_WPSF_Toaster.showMessage( oResponse.data.message, oResponse.success );
248
  }
249
  }
250
  else {
templates/php/snippets/pro.php CHANGED
@@ -259,7 +259,8 @@ var iCWP_WPSF_LicenseHandler = new function () {
259
  jQuery.post( ajaxurl, $oForm.serialize(),
260
  function ( oResponse ) {
261
  if ( typeof oResponse !== 'undefined' && typeof oResponse.data !== 'undefined' ) {
262
- iCWP_WPSF_Growl.showMessage( oResponse.data.message, oResponse.data.success );
 
263
  }
264
  }
265
  ).always( function () {
259
  jQuery.post( ajaxurl, $oForm.serialize(),
260
  function ( oResponse ) {
261
  if ( typeof oResponse !== 'undefined' && typeof oResponse.data !== 'undefined' ) {
262
+ iCWP_WPSF_Toaster.showMessage( oResponse.data.message, oResponse.data.success );
263
+ // iCWP_WPSF_Growl.showMessage( oResponse.data.message, oResponse.data.success );
264
  }
265
  }
266
  ).always( function () {
templates/twig/wpadmin_pages/insights_new/license/license.twig CHANGED
@@ -237,7 +237,7 @@ var iCWP_WPSF_LicenseHandler = new function () {
237
  jQuery.post( ajaxurl, $oForm.serialize(),
238
  function ( oResponse ) {
239
  if ( typeof oResponse !== 'undefined' && typeof oResponse.data !== 'undefined' ) {
240
- iCWP_WPSF_Growl.showMessage( oResponse.data.message, oResponse.data.success );
241
  }
242
  }
243
  ).always( function () {
237
  jQuery.post( ajaxurl, $oForm.serialize(),
238
  function ( oResponse ) {
239
  if ( typeof oResponse !== 'undefined' && typeof oResponse.data !== 'undefined' ) {
240
+ iCWP_WPSF_Toaster.showMessage( oResponse.data.message, oResponse.data.success );
241
  }
242
  }
243
  ).always( function () {