Wordfence Security – Firewall & Malware Scan - Version 1.5.3

Version Description

  • A harmless cosmetic error was being thrown up when some security scans started. Fixed that.
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

Files changed (3) hide show
  1. lib/wordfenceClass.php +8 -4
  2. readme.txt +4 -1
  3. wordfence.php +1 -1
lib/wordfenceClass.php CHANGED
@@ -726,6 +726,7 @@ class wordfence {
726
'x-wordfence-cronkey' => $cronKey
727
)
728
) );
729
if(is_wp_error($result) && sizeof($result->errors) > 0){
730
$errs = "";
731
$isTimeout = false;
@@ -742,9 +743,10 @@ class wordfence {
742
return "Error connecting to Wordfence scanning system: " . $errs;
743
}
744
}
745
- if((! is_wp_error($result)) && is_array($result) && $result['body'] && strstr($result['body'], '{') !== false){
746
$resp = json_decode($result['body'], true);
747
- if($resp['errorMsg']){
748
return $resp['errorMsg'];
749
}
750
}
@@ -769,6 +771,7 @@ class wordfence {
769
'Host' => $host
770
)
771
) );
772
if(is_wp_error($result) && sizeof($result->errors) > 0){
773
$errs = "";
774
$isTimeout = false;
@@ -785,9 +788,10 @@ class wordfence {
785
return "Error connecting to Wordfence scanning system: " . $errs;
786
}
787
}
788
- if((! is_wp_error($result)) && is_array($result) && $result['body'] && strstr($result['body'], '{') !== false){
789
$resp = json_decode($result['body'], true);
790
- if($resp['errorMsg']){
791
return $resp['errorMsg'];
792
}
793
}
726
'x-wordfence-cronkey' => $cronKey
727
)
728
) );
729
+ /* This is a timeout in all likelihood, so ignore
730
if(is_wp_error($result) && sizeof($result->errors) > 0){
731
$errs = "";
732
$isTimeout = false;
743
return "Error connecting to Wordfence scanning system: " . $errs;
744
}
745
}
746
+ */
747
+ if((! is_wp_error($result)) && is_array($result) && empty($result['body']) === false && strstr($result['body'], '{') !== false){
748
$resp = json_decode($result['body'], true);
749
+ if(empty($resp['errorMsg']) === false){
750
return $resp['errorMsg'];
751
}
752
}
771
'Host' => $host
772
)
773
) );
774
+ /* Is probably a timeout
775
if(is_wp_error($result) && sizeof($result->errors) > 0){
776
$errs = "";
777
$isTimeout = false;
788
return "Error connecting to Wordfence scanning system: " . $errs;
789
}
790
}
791
+ */
792
+ if((! is_wp_error($result)) && is_array($result) && empty($result['body']) === false && strstr($result['body'], '{') !== false){
793
$resp = json_decode($result['body'], true);
794
+ if(empty($resp['errorMsg']) === false){
795
return $resp['errorMsg'];
796
}
797
}
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.3.2
6
- Stable tag: 1.5.2
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,9 @@ 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
= 1.5.2 =
156
* Changed max scan time to 30 mins.
157
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.3.2
6
+ Stable tag: 1.5.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
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
+ = 1.5.3 =
156
+ * A harmless cosmetic error was being thrown up when some security scans started. Fixed that.
157
+
158
= 1.5.2 =
159
* Changed max scan time to 30 mins.
160
wordfence.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Wordfence Security
4
Plugin URI: http://wordfence.com/
5
Description: WordPress Security - Anti-virus and Firewall security plugin for WordPress
6
Author: Mark Maunder
7
- Version: 1.5.2
8
Author URI: http://wordfence.com/
9
*/
10
require_once('lib/wordfenceConstants.php');
4
Plugin URI: http://wordfence.com/
5
Description: WordPress Security - Anti-virus and Firewall security plugin for WordPress
6
Author: Mark Maunder
7
+ Version: 1.5.3
8
Author URI: http://wordfence.com/
9
*/
10
require_once('lib/wordfenceConstants.php');