NinjaFirewall (WP Edition) - Version 3.8.4

Version Description

  • Fixed a potential "Call to undefined function wp_get_current_user()" error that may occur with plugins such as RevSlider.
Download this release

Release Info

Developer nintechnet
Plugin Icon 128x128 NinjaFirewall (WP Edition)
Version 3.8.4
Comparing to
See all releases

Code changes from version 3.8.3 to 3.8.4

Files changed (3) hide show
  1. lib/utils.php +2 -4
  2. ninjafirewall.php +2 -2
  3. readme.txt +5 -1
lib/utils.php CHANGED
@@ -82,11 +82,9 @@ function nf_pre_http_request( $preempt, $r, $url ) {
82
 
83
  // Can be defined in wp-config.php (undocumented):
84
  if (! defined('NFW_DISABLE_SWC') ) {
85
- // Make sure the request comes from a logged in admin...
86
- if ( current_user_can('edit_plugins') ) {
87
  $s_url = get_site_url();
88
- // ...and it's calling back this website:
89
- if ( preg_match( "`^$s_url`", $url ) ) {
90
  @session_write_close();
91
  }
92
  }
82
 
83
  // Can be defined in wp-config.php (undocumented):
84
  if (! defined('NFW_DISABLE_SWC') ) {
85
+ if ( function_exists( 'get_site_url' ) ) {
 
86
  $s_url = get_site_url();
87
+ if ( strpos( $url, $s_url ) === 0 ) {
 
88
  @session_write_close();
89
  }
90
  }
ninjafirewall.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: NinjaFirewall (WP Edition)
4
  Plugin URI: https://nintechnet.com/
5
  Description: A true Web Application Firewall to protect and secure WordPress.
6
- Version: 3.8.3
7
  Author: The Ninja Technologies Network
8
  Author URI: https://nintechnet.com/
9
  License: GPLv3 or later
@@ -19,7 +19,7 @@ Domain Path: /languages
19
  | (c) NinTechNet - https://nintechnet.com/ |
20
  +---------------------------------------------------------------------+
21
  */
22
- define( 'NFW_ENGINE_VERSION', '3.8.3' );
23
  /*
24
  +---------------------------------------------------------------------+
25
  | This program is free software: you can redistribute it and/or |
3
  Plugin Name: NinjaFirewall (WP Edition)
4
  Plugin URI: https://nintechnet.com/
5
  Description: A true Web Application Firewall to protect and secure WordPress.
6
+ Version: 3.8.4
7
  Author: The Ninja Technologies Network
8
  Author URI: https://nintechnet.com/
9
  License: GPLv3 or later
19
  | (c) NinTechNet - https://nintechnet.com/ |
20
  +---------------------------------------------------------------------+
21
  */
22
+ define( 'NFW_ENGINE_VERSION', '3.8.4' );
23
  /*
24
  +---------------------------------------------------------------------+
25
  | This program is free software: you can redistribute it and/or |
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: nintechnet, bruandet
3
  Tags: security, firewall, malware, antispam, virus, scanner, hacked site, brute force, seguridad, seguranca, sicherheit, sicurezza, veiligheid
4
  Requires at least: 3.7
5
  Tested up to: 5.1
6
- Stable tag: 3.8.3
7
  Requires PHP: 5.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -199,6 +199,10 @@ NinjaFirewall works on Unix-like servers only. There is no Microsoft Windows ver
199
 
200
  == Changelog ==
201
 
 
 
 
 
202
  = 3.8.3 =
203
 
204
  * NinjaFirewall will attach a PHP backtrace to some important email notifications (see "Event Notifications > PHP backtrace").
3
  Tags: security, firewall, malware, antispam, virus, scanner, hacked site, brute force, seguridad, seguranca, sicherheit, sicurezza, veiligheid
4
  Requires at least: 3.7
5
  Tested up to: 5.1
6
+ Stable tag: 3.8.4
7
  Requires PHP: 5.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
199
 
200
  == Changelog ==
201
 
202
+ = 3.8.4 =
203
+
204
+ * Fixed a potential "Call to undefined function wp_get_current_user()" error that may occur with plugins such as RevSlider.
205
+
206
  = 3.8.3 =
207
 
208
  * NinjaFirewall will attach a PHP backtrace to some important email notifications (see "Event Notifications > PHP backtrace").