Version Description
Fixes
- Fixed the issue when protection for WooCommerce registration form was conflicting with protection for Standard WordPress registration
Download this release
Release Info
Developer | mihche |
Plugin | WPBruiser {no- Captcha anti-Spam} |
Version | 3.0.14 |
Comparing to | |
See all releases |
Code changes from version 3.0.12 to 3.0.14
- engine/modules/wordpress/GdbcWordPressPublicModule.php +19 -4
- goodbye-captcha.php +2 -2
- readme.txt +8 -2
engine/modules/wordpress/GdbcWordPressPublicModule.php
CHANGED
@@ -25,6 +25,7 @@ class GdbcWordPressPublicModule extends GdbcBasePublicModule
|
|
25 |
private $loginAuthenticateFilterHookIndex = null;
|
26 |
|
27 |
private $wasCommentFieldsLengthFilterApplied = false;
|
|
|
28 |
|
29 |
protected function __construct()
|
30 |
{
|
@@ -209,16 +210,30 @@ class GdbcWordPressPublicModule extends GdbcBasePublicModule
|
|
209 |
return $this->getTokenFieldHtml();
|
210 |
}
|
211 |
|
|
|
|
|
|
|
212 |
public function activateRegisterHooks()
|
213 |
{
|
214 |
-
|
215 |
-
|
|
|
|
|
|
|
|
|
216 |
|
217 |
-
$this->addFilterHook('registration_errors', array($this, 'validateRegisterFormEncryptedToken'), 10, 3 );
|
218 |
-
$this->addFilterHook('wpmu_validate_user_signup', array($this, 'validateMURegisterFormEncryptedToken'), 10, 1);
|
219 |
|
220 |
}
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
public function validateMURegisterFormEncryptedToken($results)
|
223 |
{
|
224 |
$this->attemptEntity->SectionId = $this->getOptionIdByOptionName(GdbcWordpressAdminModule::WORDPRESS_REGISTRATION_FORM);
|
25 |
private $loginAuthenticateFilterHookIndex = null;
|
26 |
|
27 |
private $wasCommentFieldsLengthFilterApplied = false;
|
28 |
+
private $arrRegistrationHooksIndex = null;
|
29 |
|
30 |
protected function __construct()
|
31 |
{
|
210 |
return $this->getTokenFieldHtml();
|
211 |
}
|
212 |
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
public function activateRegisterHooks()
|
217 |
{
|
218 |
+
if(empty($this->arrRegistrationHooksIndex)){
|
219 |
+
$this->arrRegistrationHooksIndex = array();
|
220 |
+
}
|
221 |
+
|
222 |
+
$this->arrRegistrationHooksIndex[] = $this->addActionHook('register_form', array($this, 'renderTokenFieldIntoForm'));
|
223 |
+
$this->arrRegistrationHooksIndex[] = $this->addActionHook('signup_extra_fields', array($this, 'renderTokenFieldIntoForm'));
|
224 |
|
225 |
+
$this->arrRegistrationHooksIndex[] = $this->addFilterHook('registration_errors', array($this, 'validateRegisterFormEncryptedToken'), 10, 3 );
|
226 |
+
$this->arrRegistrationHooksIndex[] = $this->addFilterHook('wpmu_validate_user_signup', array($this, 'validateMURegisterFormEncryptedToken'), 10, 1);
|
227 |
|
228 |
}
|
229 |
|
230 |
+
public function removeRegistrationHooks()
|
231 |
+
{
|
232 |
+
foreach( (array)$this->arrRegistrationHooksIndex as $registrationHook){
|
233 |
+
$this->removeHookByIndex($registrationHook);
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
public function validateMURegisterFormEncryptedToken($results)
|
238 |
{
|
239 |
$this->attemptEntity->SectionId = $this->getOptionIdByOptionName(GdbcWordpressAdminModule::WORDPRESS_REGISTRATION_FORM);
|
goodbye-captcha.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: WPBruiser
|
11 |
* Plugin URI: http://www.wpbruiser.com
|
12 |
* Description: An extremely powerful anti-spam plugin that blocks spambots without annoying captcha images.
|
13 |
-
* Version: 3.0.
|
14 |
* Author: Mihai Chelaru
|
15 |
* Author URI: http://www.wpbruiser.com
|
16 |
* Text Domain: wp-bruiser
|
@@ -23,7 +23,7 @@ if(!class_exists('GoodByeCaptcha', false))
|
|
23 |
{
|
24 |
class GoodByeCaptcha
|
25 |
{
|
26 |
-
CONST PLUGIN_VERSION = '3.0.
|
27 |
CONST PLUGIN_SLUG = 'wp-bruiser';
|
28 |
CONST PLUGIN_NAME = 'WPBruiser';
|
29 |
CONST PLUGIN_SITE_URL = 'http://www.wpbruiser.com';
|
10 |
* Plugin Name: WPBruiser
|
11 |
* Plugin URI: http://www.wpbruiser.com
|
12 |
* Description: An extremely powerful anti-spam plugin that blocks spambots without annoying captcha images.
|
13 |
+
* Version: 3.0.14
|
14 |
* Author: Mihai Chelaru
|
15 |
* Author URI: http://www.wpbruiser.com
|
16 |
* Text Domain: wp-bruiser
|
23 |
{
|
24 |
class GoodByeCaptcha
|
25 |
{
|
26 |
+
CONST PLUGIN_VERSION = '3.0.14';
|
27 |
CONST PLUGIN_SLUG = 'wp-bruiser';
|
28 |
CONST PLUGIN_NAME = 'WPBruiser';
|
29 |
CONST PLUGIN_SITE_URL = 'http://www.wpbruiser.com';
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mihche
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XVC3TSGEJQP2U
|
4 |
Tags: captcha, antispam, anti-spam, spam, mailpoet, antispambot, brute force, comment spam, jetpack contact form, contact form 7, ninja forms, formidable forms, wp bruiser
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -222,6 +222,12 @@ Improved proxy detection feature
|
|
222 |
|
223 |
== Changelog ==
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
= 3.0.12 =
|
226 |
|
227 |
- Refreshed Country IPs
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XVC3TSGEJQP2U
|
4 |
Tags: captcha, antispam, anti-spam, spam, mailpoet, antispambot, brute force, comment spam, jetpack contact form, contact form 7, ninja forms, formidable forms, wp bruiser
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 3.0.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
222 |
|
223 |
== Changelog ==
|
224 |
|
225 |
+
= 3.0.14 =
|
226 |
+
**Fixes**
|
227 |
+
|
228 |
+
- Fixed the issue when protection for WooCommerce registration form was conflicting with protection for Standard WordPress registration
|
229 |
+
|
230 |
+
|
231 |
= 3.0.12 =
|
232 |
|
233 |
- Refreshed Country IPs
|