WordPress Zero Spam - Version 4.3.6

Version Description

  • Added a check for the is_plugin_active functions to ensure they're available before calling it
Download this release

Release Info

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

Code changes from version 4.3.5 to 4.3.6

Files changed (4) hide show
  1. inc/admin.php +8 -0
  2. inc/helpers.php +3 -1
  3. readme.txt +5 -1
  4. wordpress-zero-spam.php +1 -1
inc/admin.php CHANGED
@@ -266,6 +266,10 @@ function wpzerospam_options_page() {
266
  }
267
 
268
  function wpzerospam_validate_options( $input ) {
 
 
 
 
269
  if ( empty( $input['log_spam'] ) ) { $input['log_spam'] = 'disabled'; }
270
  if ( empty( $input['verify_comments'] ) ) { $input['verify_comments'] = 'disabled'; }
271
  if ( empty( $input['verify_registrations'] ) ) { $input['verify_registrations'] = 'disabled'; }
@@ -312,6 +316,10 @@ function wpzerospam_admin_action_links( $actions, $plugin_file, $plugin_data, $c
312
 
313
 
314
  function wpzerospam_admin_init() {
 
 
 
 
315
  $options = wpzerospam_options();
316
 
317
  // Add settings link to plugin description
266
  }
267
 
268
  function wpzerospam_validate_options( $input ) {
269
+ if( ! function_exists( 'is_plugin_active' ) ) {
270
+ require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
271
+ }
272
+
273
  if ( empty( $input['log_spam'] ) ) { $input['log_spam'] = 'disabled'; }
274
  if ( empty( $input['verify_comments'] ) ) { $input['verify_comments'] = 'disabled'; }
275
  if ( empty( $input['verify_registrations'] ) ) { $input['verify_registrations'] = 'disabled'; }
316
 
317
 
318
  function wpzerospam_admin_init() {
319
+ if( ! function_exists( 'is_plugin_active' ) ) {
320
+ require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
321
+ }
322
+
323
  $options = wpzerospam_options();
324
 
325
  // Add settings link to plugin description
inc/helpers.php CHANGED
@@ -317,7 +317,9 @@ if ( ! function_exists( 'wpzerospam_attempt_blocked' ) ) {
317
  */
318
  if ( ! function_exists( 'wpzerospam_options' ) ) {
319
  function wpzerospam_options() {
320
- include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
 
 
321
 
322
  $options = get_option( 'wpzerospam' );
323
 
317
  */
318
  if ( ! function_exists( 'wpzerospam_options' ) ) {
319
  function wpzerospam_options() {
320
+ if( ! function_exists( 'is_plugin_active' ) ) {
321
+ require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
322
+ }
323
 
324
  $options = get_option( 'wpzerospam' );
325
 
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.3.5
9
  License: GNU GPLv3
10
  License URI: https://choosealicense.com/licenses/gpl-3.0/
11
 
@@ -88,6 +88,10 @@ Yes, that's what does the magic and keeps spam bots out.
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = 4.3.5 =
92
 
93
  * Fix for `Uncaught Error: Call to undefined function get_plugin_data()`. See [#193](https://github.com/bmarshall511/wordpress-zero-spam/issues/193).
5
  Requires at least: 5.2
6
  Tested up to: 5.4.2
7
  Requires PHP: 7.1
8
+ Stable tag: 4.3.6
9
  License: GNU GPLv3
10
  License URI: https://choosealicense.com/licenses/gpl-3.0/
11
 
88
 
89
  == Changelog ==
90
 
91
+ = 4.3.6 =
92
+
93
+ * Added a check for the `is_plugin_active` functions to ensure they're available before calling it
94
+
95
  = 4.3.5 =
96
 
97
  * Fix for `Uncaught Error: Call to undefined function get_plugin_data()`. See [#193](https://github.com/bmarshall511/wordpress-zero-spam/issues/193).
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.3.5
17
  * Requires at least: 5.2
18
  * Requires PHP: 7.2
19
  * Author: Ben Marshall
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.3.6
17
  * Requires at least: 5.2
18
  * Requires PHP: 7.2
19
  * Author: Ben Marshall