Version Description
- Fixed uninstall issue, thanks @thiagolcks (https://github.com/bmarshall511/wordpress-zero-spam/pull/139)
Download this release
Release Info
Developer | bmarshall511 |
Plugin | WordPress Zero Spam |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- readme.txt +6 -3
- uninstall.php +7 -3
- zero-spam.php +1 -1
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.gittip.com/bmarshall511/
|
|
4 |
Tags: comments, spam, antispam, anti-spam, comment spam, spambot, spammer, spam free, spam blocker, registration spam
|
5 |
Requires at least: 3.0.0
|
6 |
Tested up to: 4.6.1
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -124,8 +124,11 @@ Yes! Install [Sunny](https://wphuman.com/go/sunny/) and follow this [guide](http
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
-
= 2.
|
128 |
-
|
|
|
|
|
|
|
129 |
|
130 |
= 2.1.2 =
|
131 |
* Fixed issue with Gravity Forms not working, thanks @karpstrucking & @jaredatch (https://github.com/bmarshall511/wordpress-zero-spam/issues/132)
|
4 |
Tags: comments, spam, antispam, anti-spam, comment spam, spambot, spammer, spam free, spam blocker, registration spam
|
5 |
Requires at least: 3.0.0
|
6 |
Tested up to: 4.6.1
|
7 |
+
Stable tag: 2.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 2.2.1 =
|
128 |
+
* Fixed uninstall issue, thanks @thiagolcks (https://github.com/bmarshall511/wordpress-zero-spam/pull/139)
|
129 |
+
|
130 |
+
= 2.2.0 =
|
131 |
+
* Fixed security issue, thanks @thiagolcks (https://github.com/bmarshall511/wordpress-zero-spam/pull/138)
|
132 |
|
133 |
= 2.1.2 =
|
134 |
* Fixed issue with Gravity Forms not working, thanks @karpstrucking & @jaredatch (https://github.com/bmarshall511/wordpress-zero-spam/issues/132)
|
uninstall.php
CHANGED
@@ -39,11 +39,11 @@ if ( basename(__DIR__) . '/zero-spam.php' !== WP_UNINSTALL_PLUGIN ) {
|
|
39 |
}
|
40 |
|
41 |
// Check if the $_REQUEST content actually is the plugin name
|
42 |
-
if ( ! in_array( basename(__DIR__) . '/zero-spam.php', $_REQUEST['checked'] ) ) {
|
43 |
exit;
|
44 |
}
|
45 |
|
46 |
-
if (
|
47 |
exit;
|
48 |
}
|
49 |
|
@@ -53,7 +53,11 @@ if ( ! current_user_can( 'activate_plugins' ) ) {
|
|
53 |
}
|
54 |
|
55 |
// Run an admin referrer check to make sure it goes through authentication
|
56 |
-
|
|
|
|
|
|
|
|
|
57 |
|
58 |
// Safe to carry on
|
59 |
if ( false != get_option( 'zerospam_general_settings' ) || '' == get_option( 'zerospam_general_settings' ) ) {
|
39 |
}
|
40 |
|
41 |
// Check if the $_REQUEST content actually is the plugin name
|
42 |
+
if ( isset( $_REQUEST['checked'] ) && ! in_array( basename(__DIR__) . '/zero-spam.php', $_REQUEST['checked'] ) ) {
|
43 |
exit;
|
44 |
}
|
45 |
|
46 |
+
if ( ! in_array( $_REQUEST['action'], array( 'delete-plugin', 'delete-selected' ) ) ) {
|
47 |
exit;
|
48 |
}
|
49 |
|
53 |
}
|
54 |
|
55 |
// Run an admin referrer check to make sure it goes through authentication
|
56 |
+
if ( defined('DOING_AJAX') && DOING_AJAX ) {
|
57 |
+
check_ajax_referer( 'updates' );
|
58 |
+
} else {
|
59 |
+
check_admin_referer( 'bulk-plugins' );
|
60 |
+
}
|
61 |
|
62 |
// Safe to carry on
|
63 |
if ( false != get_option( 'zerospam_general_settings' ) || '' == get_option( 'zerospam_general_settings' ) ) {
|
zero-spam.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WordPress Zero Spam
|
4 |
* Plugin URI: https://benmarshall.me/wordpress-zero-spam
|
5 |
* 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>.
|
6 |
-
* Version: 2.2.
|
7 |
* Author: Ben Marshall
|
8 |
* Author URI: https://benmarshall.me
|
9 |
* License: GPL2
|
3 |
* Plugin Name: WordPress Zero Spam
|
4 |
* Plugin URI: https://benmarshall.me/wordpress-zero-spam
|
5 |
* 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>.
|
6 |
+
* Version: 2.2.1
|
7 |
* Author: Ben Marshall
|
8 |
* Author URI: https://benmarshall.me
|
9 |
* License: GPL2
|