Version Description
Download this release
Release Info
Developer | paultgoodchild |
Plugin | Shield Security for WordPress |
Version | 10.2.2 |
Comparing to | |
See all releases |
Code changes from version 10.2.1 to 10.2.2
- cl.json +6 -0
- icwp-wpsf.php +1 -1
- plugin-spec.php +3 -3
- readme.txt +1 -1
- src/lib/src/Modules/SecurityAdmin/ModCon.php +12 -8
- src/lib/src/Modules/UserManagement/Processor.php +1 -1
- src/lib/src/Tables/Build/Sessions.php +1 -1
- src/wizards/plugin.php +3 -3
cl.json
CHANGED
@@ -95,6 +95,12 @@
|
|
95 |
"Code designed to automatically run when the plugin is upgraded between version wasn't always running."
|
96 |
],
|
97 |
"patch": "10.2.1"
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
99 |
]
|
100 |
},
|
95 |
"Code designed to automatically run when the plugin is upgraded between version wasn't always running."
|
96 |
],
|
97 |
"patch": "10.2.1"
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"type": "fixed",
|
101 |
+
"title": "Fatal error in some cases",
|
102 |
+
"description": [],
|
103 |
+
"patch": "10.2.2"
|
104 |
}
|
105 |
]
|
106 |
},
|
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: 10.2.
|
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: 10.2.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": "10.2.
|
4 |
-
"release_timestamp":
|
5 |
-
"build": "202102.
|
6 |
"slug_parent": "icwp",
|
7 |
"slug_plugin": "wpsf",
|
8 |
"human_name": "Shield Security",
|
1 |
{
|
2 |
"properties": {
|
3 |
+
"version": "10.2.2",
|
4 |
+
"release_timestamp": 1613050536,
|
5 |
+
"build": "202102.1103",
|
6 |
"slug_parent": "icwp",
|
7 |
"slug_plugin": "wpsf",
|
8 |
"human_name": "Shield Security",
|
readme.txt
CHANGED
@@ -8,7 +8,7 @@ Requires at least: 3.5.2
|
|
8 |
Requires PHP: 7.0
|
9 |
Recommended PHP: 7.4
|
10 |
Tested up to: 5.6
|
11 |
-
Stable tag: 10.2.
|
12 |
|
13 |
The highest rated WordPress Security plugin, delivering unparalleled, all-in-one protection for you and your customers.
|
14 |
|
8 |
Requires PHP: 7.0
|
9 |
Recommended PHP: 7.4
|
10 |
Tested up to: 5.6
|
11 |
+
Stable tag: 10.2.2
|
12 |
|
13 |
The highest rated WordPress Security plugin, delivering unparalleled, all-in-one protection for you and your customers.
|
14 |
|
src/lib/src/Modules/SecurityAdmin/ModCon.php
CHANGED
@@ -84,14 +84,18 @@ class ModCon extends BaseShield\ModCon {
|
|
84 |
$WPU = Services::WpUsers();
|
85 |
|
86 |
$aFiltered = [];
|
87 |
-
foreach ( $aSecUsers as $nCurrentKey => $
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
}
|
97 |
|
84 |
$WPU = Services::WpUsers();
|
85 |
|
86 |
$aFiltered = [];
|
87 |
+
foreach ( $aSecUsers as $nCurrentKey => $usernameOrEmail ) {
|
88 |
+
$user = null;
|
89 |
+
|
90 |
+
if ( !empty( $usernameOrEmail ) ) {
|
91 |
+
if ( $DP->validEmail( $usernameOrEmail ) ) {
|
92 |
+
$user = $WPU->getUserByEmail( $usernameOrEmail );
|
93 |
+
}
|
94 |
+
else {
|
95 |
+
$user = $WPU->getUserByUsername( $usernameOrEmail );
|
96 |
+
if ( is_null( $user ) && is_numeric( $usernameOrEmail ) ) {
|
97 |
+
$user = $WPU->getUserById( $usernameOrEmail );
|
98 |
+
}
|
99 |
}
|
100 |
}
|
101 |
|
src/lib/src/Modules/UserManagement/Processor.php
CHANGED
@@ -68,7 +68,7 @@ class Processor extends BaseShield\Processor {
|
|
68 |
* @param \WP_User $user
|
69 |
*/
|
70 |
public function onWpLogin( $username, $user = null ) {
|
71 |
-
if ( !$user instanceof \WP_User ) {
|
72 |
$user = Services::WpUsers()->getUserByUsername( $username );
|
73 |
}
|
74 |
$this->setPasswordStartedAt( $user )// used by Password Policies
|
68 |
* @param \WP_User $user
|
69 |
*/
|
70 |
public function onWpLogin( $username, $user = null ) {
|
71 |
+
if ( !$user instanceof \WP_User && !empty( $username ) ) {
|
72 |
$user = Services::WpUsers()->getUserByUsername( $username );
|
73 |
}
|
74 |
$this->setPasswordStartedAt( $user )// used by Password Policies
|
src/lib/src/Tables/Build/Sessions.php
CHANGED
@@ -80,7 +80,7 @@ class Sessions extends BaseBuild {
|
|
80 |
$oWpUsers = Services::WpUsers();
|
81 |
$aE[ 'wp_username' ] = sprintf(
|
82 |
'<a href="%s">%s</a>',
|
83 |
-
$oWpUsers->getAdminUrl_ProfileEdit( $oWpUsers->getUserByUsername( $aE[ 'wp_username' ] ) ),
|
84 |
$aE[ 'wp_username' ]
|
85 |
);
|
86 |
$aEntries[ $nKey ] = $aE;
|
80 |
$oWpUsers = Services::WpUsers();
|
81 |
$aE[ 'wp_username' ] = sprintf(
|
82 |
'<a href="%s">%s</a>',
|
83 |
+
$oWpUsers->getAdminUrl_ProfileEdit( $oWpUsers->getUserByUsername( $aE[ 'wp_username' ] ?? '' ) ),
|
84 |
$aE[ 'wp_username' ]
|
85 |
);
|
86 |
$aEntries[ $nKey ] = $aE;
|
src/wizards/plugin.php
CHANGED
@@ -624,9 +624,9 @@ class ICWP_WPSF_Wizard_Plugin extends ICWP_WPSF_Wizard_BaseWpsf {
|
|
624 |
}
|
625 |
}
|
626 |
else {
|
627 |
-
$
|
628 |
-
if ( !empty( $
|
629 |
-
$oUser = Services::WpUsers()->getUserByUsername( $
|
630 |
if ( $oUser instanceof WP_User ) {
|
631 |
$aItems[] = $oUser->user_email;
|
632 |
}
|
624 |
}
|
625 |
}
|
626 |
else {
|
627 |
+
$username = sanitize_user( $sInput );
|
628 |
+
if ( !empty( $username ) ) {
|
629 |
+
$oUser = Services::WpUsers()->getUserByUsername( $username );
|
630 |
if ( $oUser instanceof WP_User ) {
|
631 |
$aItems[] = $oUser->user_email;
|
632 |
}
|