WordPress Zero Spam - Version 5.3.2

Version Description

Download this release

Release Info

Developer bmarshall511
Plugin Icon 128x128 WordPress Zero Spam
Version 5.3.2
Comparing to
See all releases

Code changes from version 5.3.1 to 5.3.2

modules/class-zerospam.php CHANGED
@@ -252,7 +252,9 @@ class Zero_Spam {
252
  );
253
 
254
  // Add specially defined data to the API report.
255
- if ( ! empty( $data['comment_author_email'] ) ) {
 
 
256
  $api_data['email_address'] = sanitize_email( $data['comment_author_email'] );
257
 
258
  if ( ! empty( $data['comment_author'] ) ) {
@@ -260,6 +262,35 @@ class Zero_Spam {
260
  }
261
  }
262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
  // Add data that should be included in every API report.
264
  $global_data = self::global_api_data();
265
  $api_data = array_merge( $api_data, $global_data );
252
  );
253
 
254
  // Add specially defined data to the API report.
255
+
256
+ // From comments.
257
+ if ( ! empty( $data['comment_author_email'] ) && is_email( $data['comment_author_email'] ) ) {
258
  $api_data['email_address'] = sanitize_email( $data['comment_author_email'] );
259
 
260
  if ( ! empty( $data['comment_author'] ) ) {
262
  }
263
  }
264
 
265
+ // From registration.
266
+ if ( ! empty( $data['user_email'] ) && is_email( $data['user_email'] ) ) {
267
+ $api_data['email_address'] = sanitize_email( $data['user_email'] );
268
+ }
269
+
270
+ // From WooCommerce registration.
271
+ if ( ! empty( $data['email'] ) && is_email( $data['email'] ) ) {
272
+ $api_data['email_address'] = sanitize_email( $data['email'] );
273
+ }
274
+
275
+ if ( ! empty( $data['post'] ) ) {
276
+ // From MemberPress.
277
+ if ( ! empty( $data['post']['user_email'] ) && is_email( $data['post']['user_email'] ) ) {
278
+ $api_data['email_address'] = sanitize_email( $data['post']['user_email'] );
279
+ }
280
+
281
+ // From Mailchimp for WordPress.
282
+ if ( ! empty( $data['post']['EMAIL'] ) && is_email( $data['post']['EMAIL'] ) ) {
283
+ $api_data['email_address'] = sanitize_email( $data['post']['EMAIL'] );
284
+ }
285
+ }
286
+
287
+ if ( ! empty( $data['data'] ) ) {
288
+ // From GiveWP.
289
+ if ( ! empty( $data['data']['give_email'] ) && is_email( $data['data']['give_email'] ) ) {
290
+ $api_data['email_address'] = sanitize_email( $data['post']['give_email'] );
291
+ }
292
+ }
293
+
294
  // Add data that should be included in every API report.
295
  $global_data = self::global_api_data();
296
  $api_data = array_merge( $api_data, $global_data );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.zerospam.org/subscribe/
5
  Requires at least: 5.2
6
  Tested up to: 5.9.2
7
  Requires PHP: 7.3
8
- Stable tag: 5.3.1
9
  License: GNU GPLv3
10
  License URI: https://choosealicense.com/licenses/gpl-3.0/
11
 
@@ -106,6 +106,10 @@ If hosting with Pantheon, see their [known issues page](https://pantheon.io/docs
106
 
107
  == Changelog ==
108
 
 
 
 
 
109
  = v5.3.1 =
110
 
111
  * fix(zero spam api): update to limit number of requests when sharing data
5
  Requires at least: 5.2
6
  Tested up to: 5.9.2
7
  Requires PHP: 7.3
8
+ Stable tag: 5.3.2
9
  License: GNU GPLv3
10
  License URI: https://choosealicense.com/licenses/gpl-3.0/
11
 
106
 
107
  == Changelog ==
108
 
109
+ = v5.3.2 =
110
+
111
+ * feat(zero spam api): now reports spam and malicious email addresses
112
+
113
  = v5.3.1 =
114
 
115
  * fix(zero spam api): update to limit number of requests when sharing data
wordpress-zero-spam.php CHANGED
@@ -13,7 +13,7 @@
13
  * Plugin Name: Zero Spam for WordPress
14
  * Plugin URI: https://www.highfivery.com/projects/zero-spam/
15
  * Description: Tired of all the ineffective WordPress anti-spam & security plugins? Zero Spam for WordPress makes blocking spam &amp; malicious activity a cinch. <strong>Just activate, configure, and say goodbye to spam.</strong>
16
- * Version: 5.3.1
17
  * Requires at least: 5.2
18
  * Requires PHP: 7.3
19
  * Author: Highfivery LLC
@@ -31,7 +31,7 @@ defined( 'ABSPATH' ) || die();
31
  define( 'ZEROSPAM', __FILE__ );
32
  define( 'ZEROSPAM_PATH', plugin_dir_path( ZEROSPAM ) );
33
  define( 'ZEROSPAM_PLUGIN_BASE', plugin_basename( ZEROSPAM ) );
34
- define( 'ZEROSPAM_VERSION', '5.3.1' );
35
 
36
  if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
37
  define( 'ZEROSPAM_URL', ZEROSPAM_DEVELOPMENT_URL );
13
  * Plugin Name: Zero Spam for WordPress
14
  * Plugin URI: https://www.highfivery.com/projects/zero-spam/
15
  * Description: Tired of all the ineffective WordPress anti-spam & security plugins? Zero Spam for WordPress makes blocking spam &amp; malicious activity a cinch. <strong>Just activate, configure, and say goodbye to spam.</strong>
16
+ * Version: 5.3.2
17
  * Requires at least: 5.2
18
  * Requires PHP: 7.3
19
  * Author: Highfivery LLC
31
  define( 'ZEROSPAM', __FILE__ );
32
  define( 'ZEROSPAM_PATH', plugin_dir_path( ZEROSPAM ) );
33
  define( 'ZEROSPAM_PLUGIN_BASE', plugin_basename( ZEROSPAM ) );
34
+ define( 'ZEROSPAM_VERSION', '5.3.2' );
35
 
36
  if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
37
  define( 'ZEROSPAM_URL', ZEROSPAM_DEVELOPMENT_URL );