Version Description
Download this release
Release Info
Developer | bmarshall511 |
Plugin | WordPress Zero Spam |
Version | 5.2.9 |
Comparing to | |
See all releases |
Code changes from version 5.2.8 to 5.2.9
- core/admin/class-settings.php +1 -0
- core/class-utilities.php +1 -1
- modules/class-zerospam.php +6 -1
- readme.txt +7 -1
- wordpress-zero-spam.php +2 -2
core/admin/class-settings.php
CHANGED
@@ -281,6 +281,7 @@ class Settings {
|
|
281 |
array(
|
282 |
'strong' => array(),
|
283 |
'a' => array(
|
|
|
284 |
'target' => array(),
|
285 |
'class' => array(),
|
286 |
'rel' => array(),
|
281 |
array(
|
282 |
'strong' => array(),
|
283 |
'a' => array(
|
284 |
+
'href' => array(),
|
285 |
'target' => array(),
|
286 |
'class' => array(),
|
287 |
'rel' => array(),
|
core/class-utilities.php
CHANGED
@@ -106,7 +106,7 @@ class Utilities {
|
|
106 |
$domain = explode( '@', $email );
|
107 |
$domain = trim( array_pop( $domain ) );
|
108 |
|
109 |
-
if ( in_array( $domain, $blocked_domains, true ) ) {
|
110 |
return true;
|
111 |
}
|
112 |
|
106 |
$domain = explode( '@', $email );
|
107 |
$domain = trim( array_pop( $domain ) );
|
108 |
|
109 |
+
if ( $blocked_domains && in_array( $domain, $blocked_domains, true ) ) {
|
110 |
return true;
|
111 |
}
|
112 |
|
modules/class-zerospam.php
CHANGED
@@ -113,7 +113,7 @@ class Zero_Spam {
|
|
113 |
'desc' => sprintf(
|
114 |
wp_kses(
|
115 |
/* translators: %1$s: Replaced with the Zero Spam URL, %2$s: Replaced with the Zero Spam subscription URL */
|
116 |
-
__( 'Enter your <a href="%1$s" target="_blank" rel="noopener noreferrer">Zero Spam</a> license key
|
117 |
array(
|
118 |
'strong' => array(),
|
119 |
'a' => array(
|
@@ -121,6 +121,7 @@ class Zero_Spam {
|
|
121 |
'href' => array(),
|
122 |
'rel' => array(),
|
123 |
),
|
|
|
124 |
)
|
125 |
),
|
126 |
esc_url( ZEROSPAM_URL ),
|
@@ -133,6 +134,10 @@ class Zero_Spam {
|
|
133 |
'value' => ! empty( $options['zerospam_license'] ) ? $options['zerospam_license'] : false,
|
134 |
);
|
135 |
|
|
|
|
|
|
|
|
|
136 |
$settings['zerospam_timeout'] = array(
|
137 |
'title' => __( 'API Timeout', 'zerospam' ),
|
138 |
'section' => 'zerospam',
|
113 |
'desc' => sprintf(
|
114 |
wp_kses(
|
115 |
/* translators: %1$s: Replaced with the Zero Spam URL, %2$s: Replaced with the Zero Spam subscription URL */
|
116 |
+
__( 'Enter your <a href="%1$s" target="_blank" rel="noopener noreferrer">Zero Spam</a> license key or define it in <code>wp-config.php</code>, using the constant <code>ZEROSPAM_LICENSE_KEY</code> to enable enhanced protection. Don\'t have an license key? <a href="%2$s" target="_blank" rel="noopener noreferrer"><strong>Get one now!</strong></a>', 'zerospam' ),
|
117 |
array(
|
118 |
'strong' => array(),
|
119 |
'a' => array(
|
121 |
'href' => array(),
|
122 |
'rel' => array(),
|
123 |
),
|
124 |
+
'code' => array(),
|
125 |
)
|
126 |
),
|
127 |
esc_url( ZEROSPAM_URL ),
|
134 |
'value' => ! empty( $options['zerospam_license'] ) ? $options['zerospam_license'] : false,
|
135 |
);
|
136 |
|
137 |
+
if ( defined( 'ZEROSPAM_LICENSE_KEY' ) && ! $settings['zerospam_license']['value'] ) {
|
138 |
+
$settings['zerospam_license']['value'] = ZEROSPAM_LICENSE_KEY;
|
139 |
+
}
|
140 |
+
|
141 |
$settings['zerospam_timeout'] = array(
|
142 |
'title' => __( 'API Timeout', 'zerospam' ),
|
143 |
'section' => 'zerospam',
|
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.8.2
|
7 |
Requires PHP: 7.3
|
8 |
-
Stable tag: 5.2.
|
9 |
License: GNU GPLv3
|
10 |
License URI: https://choosealicense.com/licenses/gpl-3.0/
|
11 |
|
@@ -103,6 +103,12 @@ If hosting with Pantheon, see their [known issues page](https://pantheon.io/docs
|
|
103 |
|
104 |
== Changelog ==
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
= v5.2.8 =
|
107 |
|
108 |
* feat(memberpress): resolves #286, added support for the memberpress login page
|
5 |
Requires at least: 5.2
|
6 |
Tested up to: 5.8.2
|
7 |
Requires PHP: 7.3
|
8 |
+
Stable tag: 5.2.9
|
9 |
License: GNU GPLv3
|
10 |
License URI: https://choosealicense.com/licenses/gpl-3.0/
|
11 |
|
103 |
|
104 |
== Changelog ==
|
105 |
|
106 |
+
= v5.2.9 =
|
107 |
+
|
108 |
+
* feat(zero spam): you can now define your zero spam license key in wp-config.php using the constant ZEROSPAM_LICENSE_KEY, resolves #298
|
109 |
+
* fix(admin): fix for setting action buttons not doing anything, resolves #295
|
110 |
+
* fix(admin): fixes php notice for in_array in class-utilities, resolves #299
|
111 |
+
|
112 |
= v5.2.8 =
|
113 |
|
114 |
* feat(memberpress): resolves #286, added support for the memberpress login page
|
wordpress-zero-spam.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
* Plugin Name: WordPress Zero Spam
|
14 |
* Plugin URI: https://www.highfivery.com/projects/zero-spam/
|
15 |
* Description: Tired of all the worthless and bloated WordPress anti-spam & security plugins? WordPress Zero Spam makes blocking spam & malicious activity a cinch. <strong>Just install, activate, configure, and say goodbye to spam.</strong>
|
16 |
-
* Version: 5.2.
|
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.2.
|
35 |
|
36 |
if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
|
37 |
define( 'ZEROSPAM_URL', ZEROSPAM_DEVELOPMENT_URL );
|
13 |
* Plugin Name: WordPress Zero Spam
|
14 |
* Plugin URI: https://www.highfivery.com/projects/zero-spam/
|
15 |
* Description: Tired of all the worthless and bloated WordPress anti-spam & security plugins? WordPress Zero Spam makes blocking spam & malicious activity a cinch. <strong>Just install, activate, configure, and say goodbye to spam.</strong>
|
16 |
+
* Version: 5.2.9
|
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.2.9' );
|
35 |
|
36 |
if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
|
37 |
define( 'ZEROSPAM_URL', ZEROSPAM_DEVELOPMENT_URL );
|