Defender Security – Malware Scanner, Login Security & Firewall - Version 3.1.1

Version Description

( 2022-07-05 ) =

  • Fix: Notifications module error
Download this release

Release Info

Developer BigTonny
Plugin Icon 128x128 Defender Security – Malware Scanner, Login Security & Firewall
Version 3.1.1
Comparing to
See all releases

Code changes from version 3.1.0 to 3.1.1

languages/wpdef-default.pot CHANGED
@@ -6,9 +6,9 @@
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: wp-defender 3.1.0\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2022-07-01 10:12+0300\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: wp-defender 3.1.1\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2022-07-05 13:28+0300\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === Defender Security - Malware Scanner, Login Security & Firewall ===
2
  Plugin Name: Defender Security - Malware Scanner, Login Security & Firewall
3
- Version: 3.1.0
4
  Author: WPMU DEV
5
  Author URI: https://wpmudev.com/
6
  Contributors: WPMUDEV
7
  Tags: security plugin, security, firewall, malware, malware scanner, antivirus, ip blocking, login security, brute force attacks, two-factor authentication, activity log, audit logs, block hackers, 2fa, hack, webauthn, authentication, fido2
8
  Requires at least: 5.2
9
  Tested up to: 6.0
10
- Stable tag: 3.1.0
11
  Requires PHP: 7.2.0
12
  License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
13
 
@@ -244,6 +244,10 @@ Please open a new thread in Defender’s [support forum](https://wordpress.org/s
244
 
245
  == Changelog ==
246
 
 
 
 
 
247
  = 3.1.0 ( 2022-07-04 ) =
248
 
249
  - New: YubiKey Authentication
1
  === Defender Security - Malware Scanner, Login Security & Firewall ===
2
  Plugin Name: Defender Security - Malware Scanner, Login Security & Firewall
3
+ Version: 3.1.1
4
  Author: WPMU DEV
5
  Author URI: https://wpmudev.com/
6
  Contributors: WPMUDEV
7
  Tags: security plugin, security, firewall, malware, malware scanner, antivirus, ip blocking, login security, brute force attacks, two-factor authentication, activity log, audit logs, block hackers, 2fa, hack, webauthn, authentication, fido2
8
  Requires at least: 5.2
9
  Tested up to: 6.0
10
+ Stable tag: 3.1.1
11
  Requires PHP: 7.2.0
12
  License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
13
 
244
 
245
  == Changelog ==
246
 
247
+ = 3.1.1 ( 2022-07-05 ) =
248
+
249
+ - Fix: Notifications module error
250
+
251
  = 3.1.0 ( 2022-07-04 ) =
252
 
253
  - New: YubiKey Authentication
src/model/notification.php CHANGED
@@ -393,16 +393,36 @@ abstract class Notification extends Setting {
393
  * Overrided method to manipulate user details dynamically.
394
  */
395
  protected function after_load(): string {
396
- foreach ( $this->in_house_recipients as $key => $recipient ) {
 
 
397
  $id = $recipient['id'];
398
  $user_data = get_userdata( $id );
399
 
400
- $this->in_house_recipients[ $key ]['name'] = $user_data->display_name;
401
- $this->in_house_recipients[ $key ]['email'] = $user_data->user_email;
402
- $this->in_house_recipients[ $key ]['role'] = ucfirst( array_shift( $user_data->roles ) );
403
- $this->in_house_recipients[ $key ]['avatar'] = get_avatar_url( $id );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  }
405
 
 
 
406
  return '';
407
  }
408
  }
393
  * Overrided method to manipulate user details dynamically.
394
  */
395
  protected function after_load(): string {
396
+ $in_house_recipients = [];
397
+
398
+ foreach ( $this->in_house_recipients as $recipient ) {
399
  $id = $recipient['id'];
400
  $user_data = get_userdata( $id );
401
 
402
+ if ( $user_data instanceof \WP_User ) {
403
+
404
+ $role = '';
405
+
406
+ if (
407
+ ! empty( $user_data->roles ) &&
408
+ is_array( $user_data->roles )
409
+ ) {
410
+ $role = ucfirst( array_shift( $user_data->roles ) );
411
+ }
412
+
413
+ $in_house_recipients[] = [
414
+ 'name' => $user_data->display_name,
415
+ 'id' => $user_data->ID,
416
+ 'email' => $user_data->user_email,
417
+ 'role' => $role,
418
+ 'avatar' => get_avatar_url( $id ),
419
+ 'status' => $recipient['status'],
420
+ ];
421
+ }
422
  }
423
 
424
+ $this->in_house_recipients = $in_house_recipients;
425
+
426
  return '';
427
  }
428
  }
wp-defender.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Defender
4
  * Plugin URI: https://wpmudev.com/project/wp-defender/
5
- * Version: 3.1.0
6
  * Description: Get regular security scans, vulnerability reports, safety recommendations and customized hardening for your site in just a few clicks. Defender is the analyst and enforcer who never sleeps.
7
  * Author: WPMU DEV
8
  * Author URI: https://wpmudev.com/
@@ -33,10 +33,10 @@ if ( ! defined( 'ABSPATH' ) ) {
33
  die;
34
  }
35
  if ( ! defined( 'DEFENDER_VERSION' ) ) {
36
- define( 'DEFENDER_VERSION', '3.1.0' );
37
  }
38
  if ( ! defined( 'DEFENDER_DB_VERSION' ) ) {
39
- define( 'DEFENDER_DB_VERSION', '3.1.0' );
40
  }
41
  if ( ! defined( 'DEFENDER_SUI' ) ) {
42
  define( 'DEFENDER_SUI', '2-12-8' );
@@ -59,6 +59,9 @@ if ( ! defined( 'WP_DEFENDER_PRO_PATH' ) ) {
59
  if ( ! defined( 'WP_DEFENDER_PRO' ) ) {
60
  define( 'WP_DEFENDER_PRO', false );
61
  }
 
 
 
62
  // If PHP version is downgraded while the plugin is running, deactivate the plugin.
63
  if ( version_compare( PHP_VERSION, WP_DEFENDER_MIN_PHP_VERSION, '<' ) ) {
64
  if ( ! function_exists( 'is_plugin_active' ) ) {
2
  /**
3
  * Plugin Name: Defender
4
  * Plugin URI: https://wpmudev.com/project/wp-defender/
5
+ * Version: 3.1.1
6
  * Description: Get regular security scans, vulnerability reports, safety recommendations and customized hardening for your site in just a few clicks. Defender is the analyst and enforcer who never sleeps.
7
  * Author: WPMU DEV
8
  * Author URI: https://wpmudev.com/
33
  die;
34
  }
35
  if ( ! defined( 'DEFENDER_VERSION' ) ) {
36
+ define( 'DEFENDER_VERSION', '3.1.1' );
37
  }
38
  if ( ! defined( 'DEFENDER_DB_VERSION' ) ) {
39
+ define( 'DEFENDER_DB_VERSION', '3.1.1' );
40
  }
41
  if ( ! defined( 'DEFENDER_SUI' ) ) {
42
  define( 'DEFENDER_SUI', '2-12-8' );
59
  if ( ! defined( 'WP_DEFENDER_PRO' ) ) {
60
  define( 'WP_DEFENDER_PRO', false );
61
  }
62
+ if ( ! defined( 'WP_DEFENDER_SUPPORT_LINK' ) ) {
63
+ define( 'WP_DEFENDER_SUPPORT_LINK', 'https://wpmudev.com/hub2/support/#get-support' );
64
+ }
65
  // If PHP version is downgraded while the plugin is running, deactivate the plugin.
66
  if ( version_compare( PHP_VERSION, WP_DEFENDER_MIN_PHP_VERSION, '<' ) ) {
67
  if ( ! function_exists( 'is_plugin_active' ) ) {