Shield Security for WordPress - Version 14.0.1

Version Description

Download this release

Release Info

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

Code changes from version 14.0.0 to 14.0.1

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: 14.0.0
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: 14.0.1
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": "14.0.0",
4
- "release_timestamp": 1643365205,
5
- "build": "202202.0601",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "14.0.1",
4
+ "release_timestamp": 1644226200,
5
+ "build": "202202.0701",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
plugin.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "14.0.0",
4
- "release_timestamp": 1643365205,
5
- "build": "202202.0601",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "14.0.1",
4
+ "release_timestamp": 1644226200,
5
+ "build": "202202.0701",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
readme.txt CHANGED
@@ -8,7 +8,7 @@ Requires at least: 3.7
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 5.9
11
- Stable tag: 14.0.0
12
 
13
  No-Nonsense Security Hardening that protects WordPress against hackers, malicious bots, and spammers (no captchas!). Now with exclusive ShieldNET Technology.
14
 
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 5.9
11
+ Stable tag: 14.0.1
12
 
13
  No-Nonsense Security Hardening that protects WordPress against hackers, malicious bots, and spammers (no captchas!). Now with exclusive ShieldNET Technology.
14
 
resources/js/plugin.js CHANGED
@@ -73,25 +73,28 @@ let iCWP_WPSF_OptsPageRender = new function () {
73
 
74
  var iCWP_WPSF_Toaster = new function () {
75
 
 
 
76
  this.showMessage = function ( msg, success ) {
77
- let $oNewToast = jQuery( '#icwpWpsfOptionsToast' );
78
- let $oToastBody = jQuery( '.toast-body', $oNewToast );
79
- $oToastBody.html( '' );
80
 
81
  jQuery( '<span></span>' ).html( msg )
82
  .addClass( success ? 'text-dark' : 'text-danger' )
83
- .appendTo( $oToastBody );
84
 
85
- $oNewToast.css( 'z-index', 1000 );
86
- $oNewToast.toast( 'show' );
87
- $oNewToast.on( 'hidden.bs.toast', function () {
88
- $oNewToast.css( 'z-index', -10 )
89
  } );
 
90
  };
91
 
92
  this.initialise = function () {
93
  jQuery( document ).ready( function () {
94
- jQuery( '.toast.icwp-toaster' ).toast( {
 
95
  autohide: true,
96
  delay: 3000
97
  } );
73
 
74
  var iCWP_WPSF_Toaster = new function () {
75
 
76
+ let toasterContainer;
77
+
78
  this.showMessage = function ( msg, success ) {
79
+ let $toaster = jQuery( toasterContainer )
80
+ let $toastBody = jQuery( '.toast-body', $toaster );
81
+ $toastBody.html( '' );
82
 
83
  jQuery( '<span></span>' ).html( msg )
84
  .addClass( success ? 'text-dark' : 'text-danger' )
85
+ .appendTo( $toastBody );
86
 
87
+ $toaster.css( 'z-index', 100000000 );
88
+ $toaster.on( 'hidden.bs.toast', function () {
89
+ $toaster.css( 'z-index', -10 )
 
90
  } );
91
+ bootstrap.Toast.getInstance( toasterContainer ).show();
92
  };
93
 
94
  this.initialise = function () {
95
  jQuery( document ).ready( function () {
96
+ toasterContainer = document.getElementById( 'icwpWpsfOptionsToast' );
97
+ new bootstrap.Toast( toasterContainer, {
98
  autohide: true,
99
  delay: 3000
100
  } );
src/lib/src/Modules/LoginGuard/Lib/TwoFactor/MfaController.php CHANGED
@@ -37,9 +37,9 @@ class MfaController extends Shield\Modules\Base\Common\ExecOnceModConsumer {
37
  function ( $provider ) {
38
  return $provider->getProviderName();
39
  },
40
- $this->getProvidersForUser( $user )
41
  );
42
- $content[] = sprintf( '<em>%s</em>: %s', __( '2FA Providers', 'wp-simple-firewall' ),
43
  empty( $providers ) ? __( 'None', 'wp-simple-firewall' ) : implode( ', ', $providers ) );
44
 
45
  return $content;
37
  function ( $provider ) {
38
  return $provider->getProviderName();
39
  },
40
+ $this->getProvidersForUser( $user, true )
41
  );
42
+ $content[] = sprintf( '<em>%s</em>: %s', __( 'Active 2FA', 'wp-simple-firewall' ),
43
  empty( $providers ) ? __( 'None', 'wp-simple-firewall' ) : implode( ', ', $providers ) );
44
 
45
  return $content;