Version Description
Download this release
Release Info
Developer | bmarshall511 |
Plugin | WordPress Zero Spam |
Version | 5.3.5 |
Comparing to | |
See all releases |
Code changes from version 5.3.4 to 5.3.5
- modules/class-zerospam.php +6 -2
- readme.txt +19 -1
- wordpress-zero-spam.php +2 -2
modules/class-zerospam.php
CHANGED
@@ -346,9 +346,10 @@ class Zero_Spam {
|
|
346 |
* Checks if a notice should be dismissed.
|
347 |
*/
|
348 |
public function check_notice_dismissal() {
|
|
|
|
|
349 |
// @codingStandardsIgnoreLine
|
350 |
if ( isset( $_GET['zero-spam-dismiss-notice-enhanced-protection'] ) ) {
|
351 |
-
$user_id = get_current_user_id();
|
352 |
add_user_meta( $user_id, 'zero_spam_dismiss_notice_enhanced_protection', current_time( 'mysql' ), true );
|
353 |
// @codingStandardsIgnoreLine
|
354 |
} elseif ( isset( $_GET['zero-spam-dismiss-notice-license'] ) ) {
|
@@ -370,7 +371,9 @@ class Zero_Spam {
|
|
370 |
if ( $is_zerospam_enabled ) {
|
371 |
$license = ! empty( $settings['zerospam_license']['value'] ) ? $settings['zerospam_license']['value'] : false;
|
372 |
if ( ! $license ) {
|
|
|
373 |
$message_dismissed = get_user_meta( $user_id, 'zero_spam_dismiss_notice_missing_license', true );
|
|
|
374 |
if ( $message_dismissed ) {
|
375 |
$days_since_last_dismissed = \ZeroSpam\Core\Utilities::time_since( $message_dismissed, current_time( 'mysql' ), 'd' );
|
376 |
|
@@ -391,7 +394,7 @@ class Zero_Spam {
|
|
391 |
$content = '<p>' . sprintf(
|
392 |
wp_kses(
|
393 |
/* translators: %1$s: Zero Spam settings URL, %2$s: dismiss message URL */
|
394 |
-
__( '<strong>Your site is vulnerable to attacks.</strong> Please enter a valid <a href="%1$s" target="_blank" rel="noreferrer noopener"><strong>Zero Spam license key</strong></a> under <a href="%2$s">Zero Spam Enhanced Protection</a
|
395 |
array(
|
396 |
'strong' => array(),
|
397 |
'a' => array(
|
@@ -405,6 +408,7 @@ class Zero_Spam {
|
|
405 |
) . '</p>';
|
406 |
} else {
|
407 |
$message_dismissed = get_user_meta( $user_id, 'zero_spam_dismiss_notice_enhanced_protection', true );
|
|
|
408 |
if ( $message_dismissed ) {
|
409 |
$days_since_last_dismissed = \ZeroSpam\Core\Utilities::time_since( $message_dismissed, current_time( 'mysql' ), 'd' );
|
410 |
|
346 |
* Checks if a notice should be dismissed.
|
347 |
*/
|
348 |
public function check_notice_dismissal() {
|
349 |
+
$user_id = get_current_user_id();
|
350 |
+
|
351 |
// @codingStandardsIgnoreLine
|
352 |
if ( isset( $_GET['zero-spam-dismiss-notice-enhanced-protection'] ) ) {
|
|
|
353 |
add_user_meta( $user_id, 'zero_spam_dismiss_notice_enhanced_protection', current_time( 'mysql' ), true );
|
354 |
// @codingStandardsIgnoreLine
|
355 |
} elseif ( isset( $_GET['zero-spam-dismiss-notice-license'] ) ) {
|
371 |
if ( $is_zerospam_enabled ) {
|
372 |
$license = ! empty( $settings['zerospam_license']['value'] ) ? $settings['zerospam_license']['value'] : false;
|
373 |
if ( ! $license ) {
|
374 |
+
|
375 |
$message_dismissed = get_user_meta( $user_id, 'zero_spam_dismiss_notice_missing_license', true );
|
376 |
+
|
377 |
if ( $message_dismissed ) {
|
378 |
$days_since_last_dismissed = \ZeroSpam\Core\Utilities::time_since( $message_dismissed, current_time( 'mysql' ), 'd' );
|
379 |
|
394 |
$content = '<p>' . sprintf(
|
395 |
wp_kses(
|
396 |
/* translators: %1$s: Zero Spam settings URL, %2$s: dismiss message URL */
|
397 |
+
__( '<strong>Your site is vulnerable to attacks.</strong> Please enter a valid <a href="%1$s" target="_blank" rel="noreferrer noopener"><strong>Zero Spam license key</strong></a> under <a href="%2$s">Zero Spam Enhanced Protection</a> or disable the Zero Spam Enhanced Protection option to dismiss this message.', 'zero-spam' ),
|
398 |
array(
|
399 |
'strong' => array(),
|
400 |
'a' => array(
|
408 |
) . '</p>';
|
409 |
} else {
|
410 |
$message_dismissed = get_user_meta( $user_id, 'zero_spam_dismiss_notice_enhanced_protection', true );
|
411 |
+
|
412 |
if ( $message_dismissed ) {
|
413 |
$days_since_last_dismissed = \ZeroSpam\Core\Utilities::time_since( $message_dismissed, current_time( 'mysql' ), 'd' );
|
414 |
|
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.3
|
7 |
Requires PHP: 7.3
|
8 |
-
Stable tag: 5.3.
|
9 |
License: GNU GPLv3
|
10 |
License URI: https://choosealicense.com/licenses/gpl-3.0/
|
11 |
|
@@ -46,6 +46,19 @@ Quit forcing people to answer questions or confusing captchas to prove they're n
|
|
46 |
|
47 |
Zero Spam for WordPress is great at blocking spam — as a site owner there's more you can do to [stop WordPress spam](https://www.benmarshall.me/stop-wordpress-spam/) in its tracks.
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
= Zero Spam for WordPress needs your support =
|
50 |
|
51 |
**Zero Spam for WordPress is free & always will be.** Please consider making a [donation](https://www.benmarshall.me/donate/?utm_source=wordpress.org&utm_medium=plugin&utm_campaign=wordpress_zero_spam) to help encourage plugin's continued development.
|
@@ -104,6 +117,11 @@ If hosting with Pantheon, see their [known issues page](https://pantheon.io/docs
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
= v5.3.4 =
|
108 |
|
109 |
* fix(notice): removed dismiss button on intial install to ensure plugin settings are configured before use
|
5 |
Requires at least: 5.2
|
6 |
Tested up to: 5.9.3
|
7 |
Requires PHP: 7.3
|
8 |
+
Stable tag: 5.3.5
|
9 |
License: GNU GPLv3
|
10 |
License URI: https://choosealicense.com/licenses/gpl-3.0/
|
11 |
|
46 |
|
47 |
Zero Spam for WordPress is great at blocking spam — as a site owner there's more you can do to [stop WordPress spam](https://www.benmarshall.me/stop-wordpress-spam/) in its tracks.
|
48 |
|
49 |
+
= Optional 3rd-party Service Integration =
|
50 |
+
|
51 |
+
Zero Spam allows you to connect to third-party applications that improve its ability to detect spam and malicious users as well as enhancements for site admins. These services are optional and are not required for Zero Spam to work. Before opting in to any of these services, please review their Terms of Use and/or Privacy Policies
|
52 |
+
|
53 |
+
* Zero Spam - When enabled, sends the visitor's IP & when available, their email address to check if they've been reported ([privacy Policy](https://www.zerospam.org/privacy/), [terms of use](https://www.zerospam.org/terms/))
|
54 |
+
* Stop Forum Spam - When enabled, sends the visitor's IP to check if they've been reported ([privacy Policy](https://www.stopforumspam.com/privacy), [terms of use](https://www.stopforumspam.com/legal))
|
55 |
+
* Project Honeypot - When enabled, sends the visitor's IP to check if they've been reported ([privacy Policy](https://www.projecthoneypot.org/privacy_policy.php), [terms of use](https://www.projecthoneypot.org/terms_of_use.php))
|
56 |
+
* ipinfo.io - When enabled, sends the visitor's IP to gather detailed geolocation information ([privacy Policy](https://ipinfo.io/privacy-policy), [terms of use](https://ipinfo.io/terms-of-service))
|
57 |
+
* ipstack - When enabled, sends the visitor's IP to gather detailed geolocation information ([privacy Policy](https://www.ideracorp.com/Legal/APILayer/PrivacyStatement), [terms of use](https://ipstack.com/terms))
|
58 |
+
* Google APIs - When enabled, enables the Google Map API to plot attack locations based on the IP address geolocation information ([privacy Policy](https://www.ideracorp.com/Legal/APILayer/PrivacyStatement), [terms of use](https://developers.google.com/terms/site-terms))
|
59 |
+
|
60 |
+
Optionally, you can also help improve Zero Spam but enabling sharing of detection information. For more information on what is shared, see our [FAQ](https://github.com/Highfivery/zero-spam-for-wordpress/wiki/FAQ)
|
61 |
+
|
62 |
= Zero Spam for WordPress needs your support =
|
63 |
|
64 |
**Zero Spam for WordPress is free & always will be.** Please consider making a [donation](https://www.benmarshall.me/donate/?utm_source=wordpress.org&utm_medium=plugin&utm_campaign=wordpress_zero_spam) to help encourage plugin's continued development.
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= v5.3.5 =
|
121 |
+
|
122 |
+
* chore(readme): added 3rd-party service integration documentation to the readme
|
123 |
+
* chore(admin): revised the admin message that's displayed with zero spam enhanced protection is enabled, but a valid api key is not provided
|
124 |
+
|
125 |
= v5.3.4 =
|
126 |
|
127 |
* fix(notice): removed dismiss button on intial install to ensure plugin settings are configured before use
|
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 & malicious activity a cinch. <strong>Just activate, configure, and say goodbye to spam.</strong>
|
16 |
-
* Version: 5.3.
|
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.
|
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 & malicious activity a cinch. <strong>Just activate, configure, and say goodbye to spam.</strong>
|
16 |
+
* Version: 5.3.5
|
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.5' );
|
35 |
|
36 |
if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
|
37 |
define( 'ZEROSPAM_URL', ZEROSPAM_DEVELOPMENT_URL );
|