Wordfence Security – Firewall & Malware Scan - Version 3.0.4

Version Description

  • Detects if the Wordfence app (not scanner) is short on memory and requests more
  • Fixes an issue where scan breaks if all scanning options are disabled
Download this release

Release Info

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

Code changes from version 3.0.3 to 3.0.4

Files changed (4) hide show
  1. lib/wfScanEngine.php +3 -0
  2. lib/wordfenceClass.php +0 -1
  3. readme.txt +6 -2
  4. wordfence.php +5 -2
lib/wfScanEngine.php CHANGED
@@ -160,6 +160,9 @@ class wfScanEngine {
160
  }
161
  if((! $this->i->summaryUpdateRequired()) && (! ($this->coreScanEnabled || $this->pluginScanEnabled || $this->themeScanEnabled || $this->malwareScanEnabled))){
162
  $this->status(2, 'info', "Finishing this stage because we don't have to do a summary update and we don't need to do a core, plugin, theme or malware scan.");
 
 
 
163
  return array();
164
  }
165
  //CORE SCAN
160
  }
161
  if((! $this->i->summaryUpdateRequired()) && (! ($this->coreScanEnabled || $this->pluginScanEnabled || $this->themeScanEnabled || $this->malwareScanEnabled))){
162
  $this->status(2, 'info', "Finishing this stage because we don't have to do a summary update and we don't need to do a core, plugin, theme or malware scan.");
163
+ //Remove main and finish routines because they rely on $this->hasher being created
164
+ array_shift($this->jobList);
165
+ array_shift($this->jobList);
166
  return array();
167
  }
168
  //CORE SCAN
lib/wordfenceClass.php CHANGED
@@ -1140,7 +1140,6 @@ class wordfence {
1140
  public static function noKeyError(){
1141
  echo '<div id="wordfenceConfigWarning" class="fade error"><p><strong>Wordfence is not configured correctly.</strong> Go to your plugins menu and disable and re-enable Wordfence and this should fix the problem.</p></div>';
1142
  }
1143
-
1144
  public static function admin_menus(){
1145
  if(! wfUtils::isAdmin()){ return; }
1146
  if(! wfConfig::get('alertEmails')){
1140
  public static function noKeyError(){
1141
  echo '<div id="wordfenceConfigWarning" class="fade error"><p><strong>Wordfence is not configured correctly.</strong> Go to your plugins menu and disable and re-enable Wordfence and this should fix the problem.</p></div>';
1142
  }
 
1143
  public static function admin_menus(){
1144
  if(! wfUtils::isAdmin()){ return; }
1145
  if(! wfConfig::get('alertEmails')){
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: mmaunder
3
  Tags: wordpress, security, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure
4
  Requires at least: 3.3.1
5
- Tested up to: 3.4
6
- Stable tag: 3.0.3
7
 
8
  Wordfence Security is a free enterprise class security plugin that includes a firewall, virus scanning, real-time traffic with geolocation and more.
9
 
@@ -152,6 +152,10 @@ or a theme, because often these have been updated to fix a security hole.
152
  5. If you're technically minded, this is the under-the-hood view of Wordfence options where you can fine-tune your security settings.
153
 
154
  == Changelog ==
 
 
 
 
155
  = 3.0.3 =
156
  * Issue that caused all core files to show as missing has been fixed.
157
  * We now handle all API server errors gracefully using exceptions.
2
  Contributors: mmaunder
3
  Tags: wordpress, security, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure
4
  Requires at least: 3.3.1
5
+ Tested up to: 3.4.1
6
+ Stable tag: 3.0.4
7
 
8
  Wordfence Security is a free enterprise class security plugin that includes a firewall, virus scanning, real-time traffic with geolocation and more.
9
 
152
  5. If you're technically minded, this is the under-the-hood view of Wordfence options where you can fine-tune your security settings.
153
 
154
  == Changelog ==
155
+ = 3.0.4 =
156
+ * Detects if the Wordfence app (not scanner) is short on memory and requests more
157
+ * Fixes an issue where scan breaks if all scanning options are disabled
158
+
159
  = 3.0.3 =
160
  * Issue that caused all core files to show as missing has been fixed.
161
  * We now handle all API server errors gracefully using exceptions.
wordfence.php CHANGED
@@ -4,11 +4,14 @@ Plugin Name: Wordfence Security
4
  Plugin URI: http://wordfence.com/
5
  Description: Wordfence Security - Anti-virus and Firewall security plugin for WordPress
6
  Author: Mark Maunder
7
- Version: 3.0.3
8
  Author URI: http://wordfence.com/
9
  */
10
- define('WORDFENCE_VERSION', '3.0.3');
11
  if(! defined('WORDFENCE_VERSIONONLY_MODE')){
 
 
 
12
  require_once('lib/wordfenceConstants.php');
13
  require_once('lib/wordfenceClass.php');
14
  register_activation_hook(WP_PLUGIN_DIR . '/wordfence/wordfence.php', 'wordfence::installPlugin');
4
  Plugin URI: http://wordfence.com/
5
  Description: Wordfence Security - Anti-virus and Firewall security plugin for WordPress
6
  Author: Mark Maunder
7
+ Version: 3.0.4
8
  Author URI: http://wordfence.com/
9
  */
10
+ define('WORDFENCE_VERSION', '3.0.4');
11
  if(! defined('WORDFENCE_VERSIONONLY_MODE')){
12
+ if((int) @ini_get('memory_limit') < 64){
13
+ @ini_set('memory_limit', '64M'); //Some hosts have ini set at as little as 32 megs. 64 is the min sane amount of memory.
14
+ }
15
  require_once('lib/wordfenceConstants.php');
16
  require_once('lib/wordfenceClass.php');
17
  register_activation_hook(WP_PLUGIN_DIR . '/wordfence/wordfence.php', 'wordfence::installPlugin');