Wordfence Security – Firewall & Malware Scan - Version 5.3.8

Version Description

  • Customers running WP versions older than 3.9 don't support wp_normalize_path(). Added support for older WP versions to fix an error being thrown.
Download this release

Release Info

Developer mmaunder
Plugin Icon 128x128 Wordfence Security – Firewall & Malware Scan
Version 5.3.8
Comparing to
See all releases

Code changes from version 5.3.7 to 5.3.8

Files changed (3) hide show
  1. lib/wfUtils.php +10 -4
  2. readme.txt +6 -3
  3. wordfence.php +2 -2
lib/wfUtils.php CHANGED
@@ -102,11 +102,17 @@ class wfUtils {
102
  return plugins_url() . '/wordfence/';
103
  }
104
  public static function getPluginBaseDir(){
105
- if(defined('WP_PLUGIN_DIR')) {
106
- return wp_normalize_path(WP_PLUGIN_DIR . '/');
 
 
 
 
 
 
 
 
107
  }
108
- return wp_normalize_path(WP_CONTENT_DIR . '/plugins/');
109
-
110
  }
111
  public static function makeRandomIP(){
112
  return rand(11,230) . '.' . rand(0,255) . '.' . rand(0,255) . '.' . rand(0,255);
102
  return plugins_url() . '/wordfence/';
103
  }
104
  public static function getPluginBaseDir(){
105
+ if(function_exists('wp_normalize_path')){ //Older WP versions don't have this func and we had many complaints before this check.
106
+ if(defined('WP_PLUGIN_DIR')) {
107
+ return wp_normalize_path(WP_PLUGIN_DIR . '/');
108
+ }
109
+ return wp_normalize_path(WP_CONTENT_DIR . '/plugins/');
110
+ } else {
111
+ if(defined('WP_PLUGIN_DIR')) {
112
+ return WP_PLUGIN_DIR . '/';
113
+ }
114
+ return WP_CONTENT_DIR . '/plugins/';
115
  }
 
 
116
  }
117
  public static function makeRandomIP(){
118
  return rand(11,230) . '.' . rand(0,255) . '.' . rand(0,255) . '.' . rand(0,255);
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Wordfence Security ===
2
  Contributors: mmaunder
3
  Tags: wordpress, security, performance, speed, caching, cache, caching plugin, wordpress cache, wordpress caching, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure, two factor, cellphone sign-in, cellphone signin, cellphone, twofactor, security, secure, htaccess, login, log, users, login alerts, lock, chmod, maintenance, plugin, private, privacy, protection, permissions, 503, base64, injection, code, encode, script, attack, hack, hackers, block, blocked, prevent, prevention, RFI, XSS, CRLF, CSRF, SQL Injection, vulnerability, website security, WordPress security, security log, logging, HTTP log, error log, login security, personal security, infrastructure security, firewall security, front-end security, web server security, proxy security, reverse proxy security, secure website, secure login, two factor security, maximum login security, heartbleed, heart bleed, heartbleed vulnerability, openssl vulnerability, nginx, litespeed, php5-fpm, woocommerce support, woocommerce caching
4
- Requires at least: 3.3.1
5
- Tested up to: 4.1
6
- Stable tag: 5.3.7
7
 
8
  Wordfence Security is a free enterprise class security and performance plugin that makes your site up to 50 times faster and more secure.
9
 
@@ -165,6 +165,9 @@ cause a security hole on your site.
165
 
166
  == Changelog ==
167
 
 
 
 
168
  = 5.3.7 =
169
  * Improvement: Updated country blocking database to the newest version (March 2015)
170
  * Improvement: Added detection for many new samples we received (thanks all!) including a nasty polymorphic infection.
1
  === Wordfence Security ===
2
  Contributors: mmaunder
3
  Tags: wordpress, security, performance, speed, caching, cache, caching plugin, wordpress cache, wordpress caching, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure, two factor, cellphone sign-in, cellphone signin, cellphone, twofactor, security, secure, htaccess, login, log, users, login alerts, lock, chmod, maintenance, plugin, private, privacy, protection, permissions, 503, base64, injection, code, encode, script, attack, hack, hackers, block, blocked, prevent, prevention, RFI, XSS, CRLF, CSRF, SQL Injection, vulnerability, website security, WordPress security, security log, logging, HTTP log, error log, login security, personal security, infrastructure security, firewall security, front-end security, web server security, proxy security, reverse proxy security, secure website, secure login, two factor security, maximum login security, heartbleed, heart bleed, heartbleed vulnerability, openssl vulnerability, nginx, litespeed, php5-fpm, woocommerce support, woocommerce caching
4
+ Requires at least: 3.9
5
+ Tested up to: 4.1.1
6
+ Stable tag: 5.3.8
7
 
8
  Wordfence Security is a free enterprise class security and performance plugin that makes your site up to 50 times faster and more secure.
9
 
165
 
166
  == Changelog ==
167
 
168
+ = 5.3.8 =
169
+ * Customers running WP versions older than 3.9 don't support wp_normalize_path(). Added support for older WP versions to fix an error being thrown.
170
+
171
  = 5.3.7 =
172
  * Improvement: Updated country blocking database to the newest version (March 2015)
173
  * Improvement: Added detection for many new samples we received (thanks all!) including a nasty polymorphic infection.
wordfence.php CHANGED
@@ -4,13 +4,13 @@ Plugin Name: Wordfence Security
4
  Plugin URI: http://www.wordfence.com/
5
  Description: Wordfence Security - Anti-virus, Firewall and High Speed Cache
6
  Author: Wordfence
7
- Version: 5.3.7
8
  Author URI: http://www.wordfence.com/
9
  */
10
  if(defined('WP_INSTALLING') && WP_INSTALLING){
11
  return;
12
  }
13
- define('WORDFENCE_VERSION', '5.3.7');
14
  if(get_option('wordfenceActivated') != 1){
15
  add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); }
16
  }
4
  Plugin URI: http://www.wordfence.com/
5
  Description: Wordfence Security - Anti-virus, Firewall and High Speed Cache
6
  Author: Wordfence
7
+ Version: 5.3.8
8
  Author URI: http://www.wordfence.com/
9
  */
10
  if(defined('WP_INSTALLING') && WP_INSTALLING){
11
  return;
12
  }
13
+ define('WORDFENCE_VERSION', '5.3.8');
14
  if(get_option('wordfenceActivated') != 1){
15
  add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); }
16
  }