Wordfence Security – Firewall & Malware Scan - Version 3.6.5

Version Description

  • Fixed Fatal error: func_get_args(): Can't be used as a function parameter.
  • This bug affected users using PHP older than 5.3.0
Download this release

Release Info

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

Code changes from version 3.6.4 to 3.6.5

Files changed (3) hide show
  1. lib/wfDB.php +10 -5
  2. readme.txt +5 -1
  3. wordfence.php +2 -2
lib/wfDB.php CHANGED
@@ -12,7 +12,8 @@ class wfDB {
12
  public function querySingle(){
13
  global $wpdb;
14
  if(func_num_args() > 1){
15
- return $wpdb->get_var(call_user_func_array(array($wpdb, 'prepare'), func_get_args()));
 
16
  } else {
17
  return $wpdb->get_var(func_get_arg(0));
18
  }
@@ -20,7 +21,8 @@ class wfDB {
20
  public function querySingleRec(){ //queryInSprintfFormat, arg1, arg2, ... :: Returns a single assoc-array or null if nothing found.
21
  global $wpdb;
22
  if(func_num_args() > 1){
23
- return $wpdb->get_row(call_user_func_array(array($wpdb, 'prepare'), func_get_args()), ARRAY_A);
 
24
  } else {
25
  return $wpdb->get_row(func_get_arg(0), ARRAY_A);
26
  }
@@ -28,7 +30,8 @@ class wfDB {
28
  public function queryWrite(){
29
  global $wpdb;
30
  if(func_num_args() > 1){
31
- return $wpdb->query(call_user_func_array(array($wpdb, 'prepare'), func_get_args()));
 
32
  } else {
33
  return $wpdb->query(func_get_arg(0));
34
  }
@@ -40,7 +43,8 @@ class wfDB {
40
  public function querySelect(){ //sprintfString, arguments :: always returns array() and will be empty if no results.
41
  global $wpdb;
42
  if(func_num_args() > 1){
43
- return $wpdb->get_results(call_user_func_array(array($wpdb, 'prepare'), func_get_args()), ARRAY_A);
 
44
  } else {
45
  return $wpdb->get_results(func_get_arg(0), ARRAY_A);
46
  }
@@ -48,7 +52,8 @@ class wfDB {
48
  public function queryWriteIgnoreError(){ //sprintfString, arguments
49
  global $wpdb;
50
  $oldSuppress = $wpdb->suppress_errors(true);
51
- call_user_func_array(array($this, 'queryWrite'), func_get_args());
 
52
  $wpdb->suppress_errors($oldSuppress);
53
  }
54
  public function columnExists($table, $col){
12
  public function querySingle(){
13
  global $wpdb;
14
  if(func_num_args() > 1){
15
+ $args = func_get_args();
16
+ return $wpdb->get_var(call_user_func_array(array($wpdb, 'prepare'), $args));
17
  } else {
18
  return $wpdb->get_var(func_get_arg(0));
19
  }
21
  public function querySingleRec(){ //queryInSprintfFormat, arg1, arg2, ... :: Returns a single assoc-array or null if nothing found.
22
  global $wpdb;
23
  if(func_num_args() > 1){
24
+ $args = func_get_args();
25
+ return $wpdb->get_row(call_user_func_array(array($wpdb, 'prepare'), $args), ARRAY_A);
26
  } else {
27
  return $wpdb->get_row(func_get_arg(0), ARRAY_A);
28
  }
30
  public function queryWrite(){
31
  global $wpdb;
32
  if(func_num_args() > 1){
33
+ $args = func_get_args();
34
+ return $wpdb->query(call_user_func_array(array($wpdb, 'prepare'), $args));
35
  } else {
36
  return $wpdb->query(func_get_arg(0));
37
  }
43
  public function querySelect(){ //sprintfString, arguments :: always returns array() and will be empty if no results.
44
  global $wpdb;
45
  if(func_num_args() > 1){
46
+ $args = func_get_args();
47
+ return $wpdb->get_results(call_user_func_array(array($wpdb, 'prepare'), $args), ARRAY_A);
48
  } else {
49
  return $wpdb->get_results(func_get_arg(0), ARRAY_A);
50
  }
52
  public function queryWriteIgnoreError(){ //sprintfString, arguments
53
  global $wpdb;
54
  $oldSuppress = $wpdb->suppress_errors(true);
55
+ $args = func_get_args();
56
+ call_user_func_array(array($this, 'queryWrite'), $args);
57
  $wpdb->suppress_errors($oldSuppress);
58
  }
59
  public function columnExists($table, $col){
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.5.1
6
- Stable tag: 3.6.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
 
@@ -155,6 +155,10 @@ or a theme, because often these have been updated to fix a security hole.
155
 
156
  == Changelog ==
157
 
 
 
 
 
158
  = 3.6.4 =
159
  * Fixed a major javascript bug that snuck in 2 releases ago and has disabled many features for Internet Explorer browsers.
160
  * Clarified range blocking examples.
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.5.1
6
+ Stable tag: 3.6.5
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
 
155
 
156
  == Changelog ==
157
 
158
+ = 3.6.5 =
159
+ * Fixed Fatal error: func_get_args(): Can't be used as a function parameter.
160
+ * This bug affected users using PHP older than 5.3.0
161
+
162
  = 3.6.4 =
163
  * Fixed a major javascript bug that snuck in 2 releases ago and has disabled many features for Internet Explorer browsers.
164
  * Clarified range blocking examples.
wordfence.php CHANGED
@@ -4,10 +4,10 @@ Plugin Name: Wordfence Security
4
  Plugin URI: http://www.wordfence.com/
5
  Description: Wordfence Security - Anti-virus and Firewall security plugin for WordPress
6
  Author: Mark Maunder
7
- Version: 3.6.4
8
  Author URI: http://www.wordfence.com/
9
  */
10
- define('WORDFENCE_VERSION', '3.6.4');
11
  if(get_option('wordfenceActivated') != 1){
12
  add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); }
13
  }
4
  Plugin URI: http://www.wordfence.com/
5
  Description: Wordfence Security - Anti-virus and Firewall security plugin for WordPress
6
  Author: Mark Maunder
7
+ Version: 3.6.5
8
  Author URI: http://www.wordfence.com/
9
  */
10
+ define('WORDFENCE_VERSION', '3.6.5');
11
  if(get_option('wordfenceActivated') != 1){
12
  add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); }
13
  }