WordPress Zero Spam - Version 4.9.10

Version Description

  • Fix - Fix for PHP notice relating to an undefined variable, strip_comment_links. See https://wordpress.org/support/topic/im-getting-this-after-latest-update/.
Download this release

Release Info

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

Code changes from version 4.9.9 to 4.9.10

integrations/comments/comments.php CHANGED
@@ -178,7 +178,7 @@ add_action( 'wpzerospam_admin_submission_data_items', 'wpzerospam_comment_admin_
178
  */
179
  if ( ! function_exists( 'wpzerospam_comments_after_setup_theme' ) ) {
180
  function wpzerospam_comments_after_setup_theme() {
181
- $options = get_option( 'wpzerospam' );
182
 
183
  // Determines is author links should be stripped.
184
  if ( 'enabled' == $options['strip_comment_author_links'] ) {
@@ -317,7 +317,7 @@ if ( ! function_exists( 'wpzerospam_comments_form_defaults' ) ) {
317
  */
318
  if ( ! function_exists( 'wpzerospam_comments_preprocess' ) ) {
319
  function wpzerospam_comments_preprocess( $commentdata ) {
320
- $options = get_option( 'wpzerospam' );
321
  $honeypot = wpzerospam_get_honeypot();
322
 
323
  if (
178
  */
179
  if ( ! function_exists( 'wpzerospam_comments_after_setup_theme' ) ) {
180
  function wpzerospam_comments_after_setup_theme() {
181
+ $options = wpzerospam_options();
182
 
183
  // Determines is author links should be stripped.
184
  if ( 'enabled' == $options['strip_comment_author_links'] ) {
317
  */
318
  if ( ! function_exists( 'wpzerospam_comments_preprocess' ) ) {
319
  function wpzerospam_comments_preprocess( $commentdata ) {
320
+ $options = wpzerospam_options();
321
  $honeypot = wpzerospam_get_honeypot();
322
 
323
  if (
integrations/registrations/registrations.php CHANGED
@@ -19,7 +19,7 @@ add_filter( 'wpzerospam_types', function( $types ) {
19
  */
20
  if ( ! function_exists( 'wpzerospam_preprocess_registration' ) ) {
21
  function wpzerospam_preprocess_registration( $errors, $sanitized_user_login, $user_email ) {
22
- $options = get_option( 'wpzerospam' );
23
  if ( 'enabled' != $options['verify_registrations'] ) { return $errors; }
24
 
25
  if ( ! wpzerospam_key_check() ) {
@@ -45,7 +45,7 @@ add_filter( 'registration_errors', 'wpzerospam_preprocess_registration', 10, 3 )
45
  */
46
  if ( ! function_exists( 'wpzerospam_registration_form' ) ) {
47
  function wpzerospam_registration_form() {
48
- $options = get_option( 'wpzerospam' );
49
  if ( 'enabled' != $options['verify_registrations'] ) { return; }
50
 
51
  // WordPress Zero Spam registration integration
19
  */
20
  if ( ! function_exists( 'wpzerospam_preprocess_registration' ) ) {
21
  function wpzerospam_preprocess_registration( $errors, $sanitized_user_login, $user_email ) {
22
+ $options = wpzerospam_options();
23
  if ( 'enabled' != $options['verify_registrations'] ) { return $errors; }
24
 
25
  if ( ! wpzerospam_key_check() ) {
45
  */
46
  if ( ! function_exists( 'wpzerospam_registration_form' ) ) {
47
  function wpzerospam_registration_form() {
48
+ $options = wpzerospam_options();
49
  if ( 'enabled' != $options['verify_registrations'] ) { return; }
50
 
51
  // WordPress Zero Spam registration integration
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://benmarshall.me/donate/?utm_source=wordpress_zero_spam&utm_m
5
  Requires at least: 5.2
6
  Tested up to: 5.4.2
7
  Requires PHP: 7.1
8
- Stable tag: 4.9.9
9
  License: GNU GPLv3
10
  License URI: https://choosealicense.com/licenses/gpl-3.0/
11
 
@@ -127,6 +127,10 @@ Yes. It does not store any kind of personally identifiable information. Only one
127
 
128
  == Changelog ==
129
 
 
 
 
 
130
  = 4.9.9 =
131
 
132
  * Enhancement - Strengthened spam detection for comment submission using a 'honeypot' field.
5
  Requires at least: 5.2
6
  Tested up to: 5.4.2
7
  Requires PHP: 7.1
8
+ Stable tag: 4.9.10
9
  License: GNU GPLv3
10
  License URI: https://choosealicense.com/licenses/gpl-3.0/
11
 
127
 
128
  == Changelog ==
129
 
130
+ = 4.9.10 =
131
+
132
+ * Fix - Fix for PHP notice relating to an undefined variable, `strip_comment_links`. See [https://wordpress.org/support/topic/im-getting-this-after-latest-update/](https://wordpress.org/support/topic/im-getting-this-after-latest-update/).
133
+
134
  = 4.9.9 =
135
 
136
  * Enhancement - Strengthened spam detection for comment submission using a 'honeypot' field.
wordpress-zero-spam.php CHANGED
@@ -13,7 +13,7 @@
13
  * Plugin Name: WordPress Zero Spam
14
  * Plugin URI: https://benmarshall.me/wordpress-zero-spam
15
  * Description: Tired of all the useless and bloated WordPress spam plugins? The WordPress Zero Spam plugin makes blocking spam a cinch. <strong>Just install, activate and say goodbye to spam.</strong> Based on work by <a href="http://davidwalsh.name/wordpress-comment-spam" target="_blank">David Walsh</a>.
16
- * Version: 4.9.9
17
  * Requires at least: 5.2
18
  * Requires PHP: 7.2
19
  * Author: Ben Marshall
@@ -31,7 +31,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
31
  // Define plugin constants
32
  define( 'WORDPRESS_ZERO_SPAM', __FILE__ );
33
  define( 'WORDPRESS_ZERO_SPAM_DB_VERSION', '0.5' );
34
- define( 'WORDPRESS_ZERO_SPAM_VERSION', '4.9.9' );
35
 
36
  /**
37
  * Utility helper functions
13
  * Plugin Name: WordPress Zero Spam
14
  * Plugin URI: https://benmarshall.me/wordpress-zero-spam
15
  * Description: Tired of all the useless and bloated WordPress spam plugins? The WordPress Zero Spam plugin makes blocking spam a cinch. <strong>Just install, activate and say goodbye to spam.</strong> Based on work by <a href="http://davidwalsh.name/wordpress-comment-spam" target="_blank">David Walsh</a>.
16
+ * Version: 4.9.10
17
  * Requires at least: 5.2
18
  * Requires PHP: 7.2
19
  * Author: Ben Marshall
31
  // Define plugin constants
32
  define( 'WORDPRESS_ZERO_SPAM', __FILE__ );
33
  define( 'WORDPRESS_ZERO_SPAM_DB_VERSION', '0.5' );
34
+ define( 'WORDPRESS_ZERO_SPAM_VERSION', '4.9.10' );
35
 
36
  /**
37
  * Utility helper functions