Better WordPress reCAPTCHA (with no CAPTCHA reCAPTCHA) - Version 1.1.2

Version Description

  • Fixed an issue where captcha is not displayed but still checked when added to a Contact Form 7 form.
Download this release

Release Info

Developer OddOneOut
Plugin Icon wp plugin Better WordPress reCAPTCHA (with no CAPTCHA reCAPTCHA)
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.1 to 1.1.2

bwp-recaptcha.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Better WordPress reCAPTCHA
4
  Plugin URI: http://betterwp.net/wordpress-plugins/bwp-recaptcha/
5
  Description: This plugin utilizes reCAPTCHA (with support for Akismet) to help your blog stay clear of spams. This plugin, however, has a different approach from the current WP-reCAPTCHA plugin and allows you to customize how the captcha looks using CSS.
6
- Version: 1.1.1
7
  Text Domain: bwp-recaptcha
8
  Domain Path: /languages/
9
  Author: Khang Minh
3
  Plugin Name: Better WordPress reCAPTCHA
4
  Plugin URI: http://betterwp.net/wordpress-plugins/bwp-recaptcha/
5
  Description: This plugin utilizes reCAPTCHA (with support for Akismet) to help your blog stay clear of spams. This plugin, however, has a different approach from the current WP-reCAPTCHA plugin and allows you to customize how the captcha looks using CSS.
6
+ Version: 1.1.2
7
  Text Domain: bwp-recaptcha
8
  Domain Path: /languages/
9
  Author: Khang Minh
includes/class-bwp-recaptcha.php CHANGED
@@ -82,7 +82,7 @@ class BWP_RECAPTCHA extends BWP_FRAMEWORK_IMPROVED
82
  /**
83
  * Constructor
84
  */
85
- public function __construct($version = '1.1.1')
86
  {
87
  // Plugin's title
88
  $this->plugin_title = 'Better WordPress reCAPTCHA';
@@ -302,8 +302,12 @@ class BWP_RECAPTCHA extends BWP_FRAMEWORK_IMPROVED
302
 
303
  if (!empty($this->options['input_pubkey']) && !empty($this->options['input_prikey']))
304
  {
 
 
 
305
  if ('yes' == $this->options['enable_comment'])
306
  {
 
307
  if (!$this->_is_captcha_required())
308
  {
309
  // if user chooses to integrate with akismet, only show
@@ -312,9 +316,6 @@ class BWP_RECAPTCHA extends BWP_FRAMEWORK_IMPROVED
312
  }
313
  else if (!$this->user_can_bypass())
314
  {
315
- // this action needs to be added manually into your theme file, i.e. comments.php
316
- add_action('bwp_recaptcha_add_markups', array($this, 'add_recaptcha'));
317
-
318
  if ($this->options['select_position'] == 'after_fields')
319
  {
320
  // show captcha after website field
82
  /**
83
  * Constructor
84
  */
85
+ public function __construct($version = '1.1.2')
86
  {
87
  // Plugin's title
88
  $this->plugin_title = 'Better WordPress reCAPTCHA';
302
 
303
  if (!empty($this->options['input_pubkey']) && !empty($this->options['input_prikey']))
304
  {
305
+ // this action needs to be added when a captcha is manually needed
306
+ add_action('bwp_recaptcha_add_markups', array($this, 'add_recaptcha'));
307
+
308
  if ('yes' == $this->options['enable_comment'])
309
  {
310
+ // add captcha to comment form
311
  if (!$this->_is_captcha_required())
312
  {
313
  // if user chooses to integrate with akismet, only show
316
  }
317
  else if (!$this->user_can_bypass())
318
  {
 
 
 
319
  if ($this->options['select_position'] == 'after_fields')
320
  {
321
  // show captcha after website field
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://betterwp.net/wordpress-plugins/bwp-recaptcha/
4
  Tags: recaptcha, captcha, comment captcha, login captcha, user registration captcha, blog registration captcha, contact form, contact form 7, akismet, akismet integration, akismet captcha, anti-spam, antispam
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
- Stable tag: 1.1.1
8
  License: GPLv3 or later
9
 
10
  This plugin utilizes Google reCAPTCHA to help your blog stay clear of spams. You can use this plugin with Akismet and Contact Form 7.
@@ -84,6 +84,9 @@ Please [help translate](http://betterwp.net/wordpress-tips/create-pot-file-using
84
 
85
  == Changelog ==
86
 
 
 
 
87
  = 1.1.1 =
88
  * You can now choose to add captcha below comment text area without using a theme function. More info [here](http://betterwp.net/wordpress-plugins/bwp-recaptcha/#usage)
89
  * Added `recaptcha` shortcode tag back to Contact Form 7. Users can now choose between `recaptcha` and `bwp-recaptcha`
4
  Tags: recaptcha, captcha, comment captcha, login captcha, user registration captcha, blog registration captcha, contact form, contact form 7, akismet, akismet integration, akismet captcha, anti-spam, antispam
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
+ Stable tag: 1.1.2
8
  License: GPLv3 or later
9
 
10
  This plugin utilizes Google reCAPTCHA to help your blog stay clear of spams. You can use this plugin with Akismet and Contact Form 7.
84
 
85
  == Changelog ==
86
 
87
+ = 1.1.2 =
88
+ * Fixed an issue where captcha is not displayed but still checked when added to a Contact Form 7 form.
89
+
90
  = 1.1.1 =
91
  * You can now choose to add captcha below comment text area without using a theme function. More info [here](http://betterwp.net/wordpress-plugins/bwp-recaptcha/#usage)
92
  * Added `recaptcha` shortcode tag back to Contact Form 7. Users can now choose between `recaptcha` and `bwp-recaptcha`