WordPress ReCaptcha Integration - Version 1.0.1

Version Description

  • Fix API Key test
  • Fix theme select
Download this release

Release Info

Developer podpirate
Plugin Icon 128x128 WordPress ReCaptcha Integration
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

inc/class-wp-recaptcha-options.php CHANGED
@@ -286,7 +286,8 @@ class WP_reCaptcha_Options {
286
  public function ajax_test_api_key() {
287
  if ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'] , $_REQUEST['action'] ) ) {
288
  header('Content-Type: text/html');
289
- WP_reCaptcha::instance()->recaptcha_script( 'grecaptcha' );
 
290
  WP_reCaptcha::instance()->print_recaptcha_html( 'grecaptcha' );
291
  $action = 'recaptcha-test-verification';
292
  $nonce = wp_create_nonce( $action );
286
  public function ajax_test_api_key() {
287
  if ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'] , $_REQUEST['action'] ) ) {
288
  header('Content-Type: text/html');
289
+ WP_reCaptcha::instance()->recaptcha_head( 'grecaptcha' );
290
+ WP_reCaptcha::instance()->recaptcha_foot( 'grecaptcha' );
291
  WP_reCaptcha::instance()->print_recaptcha_html( 'grecaptcha' );
292
  $action = 'recaptcha-test-verification';
293
  $nonce = wp_create_nonce( $action );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: security, captcha, recaptcha, no captcha, login, signup, contact form 7, ninja forms
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -25,6 +25,17 @@ form 7 as well as a plugin API for your own integrations.
25
 
26
  Latest Files on GitHub: [https://github.com/mcguffin/wp-recaptcha-integration](https://github.com/mcguffin/wp-recaptcha-integration)
27
 
 
 
 
 
 
 
 
 
 
 
 
28
  = Known Limitations =
29
  - You can't have more than one old style reCaptcha on a page. This is a limitiation of
30
  reCaptcha itself. If that's an issue for you, you should use the no Captcha Form.
@@ -91,6 +102,10 @@ I will migrate all the translation stuff there.
91
 
92
  == Changelog ==
93
 
 
 
 
 
94
  = 1.0.0 =
95
  - Allow more than one no Captcha per page
96
  - Test captcha verification in Settings
4
  Tags: security, captcha, recaptcha, no captcha, login, signup, contact form 7, ninja forms
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
25
 
26
  Latest Files on GitHub: [https://github.com/mcguffin/wp-recaptcha-integration](https://github.com/mcguffin/wp-recaptcha-integration)
27
 
28
+ = Multisite support =
29
+
30
+ On a WP Multisite support you can either activate the plugin network wide or on a single site.
31
+
32
+ Activated on a single site everything works as usual.
33
+
34
+ With network activation entering the API key and setting up where a recaptcha is required
35
+ is up to the network admin. A blog admin can only select a theme and override the API key
36
+ if necessary.
37
+
38
+
39
  = Known Limitations =
40
  - You can't have more than one old style reCaptcha on a page. This is a limitiation of
41
  reCaptcha itself. If that's an issue for you, you should use the no Captcha Form.
102
 
103
  == Changelog ==
104
 
105
+ = 1.0.1 =
106
+ - Fix API Key test
107
+ - Fix theme select
108
+
109
  = 1.0.0 =
110
  - Allow more than one no Captcha per page
111
  - Test captcha verification in Settings
wp-recaptcha-integration.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP reCaptcha Integration
4
  Plugin URI: https://wordpress.org/plugins/wp-recaptcha-integration/
5
  Description: Integrate reCaptcha in your blog. Supports no Captcha (new style recaptcha) as well as the old stle reCaptcha. Provides of the box integration for signup, login, comment forms, lost password, Ninja Forms and contact form 7.
6
- Version: 1.0.0
7
  Author: Jörn Lund
8
  Author URI: https://github.com/mcguffin/
9
  */
@@ -197,7 +197,7 @@ class WP_reCaptcha {
197
  function recaptchaLoadCallback(){
198
  var e=document.getElementsByClassName('g-recaptcha');
199
  for (var i=0;i<e.length;i++)
200
- grecaptcha.render(e[i],{'sitekey':'<?php echo $this->get_option('recaptcha_publickey') ?>'});
201
  }
202
  </script><?php
203
  ?><script src="https://www.google.com/recaptcha/api.js?onload=recaptchaLoadCallback&render=explicit" async defer></script><?php
3
  Plugin Name: WP reCaptcha Integration
4
  Plugin URI: https://wordpress.org/plugins/wp-recaptcha-integration/
5
  Description: Integrate reCaptcha in your blog. Supports no Captcha (new style recaptcha) as well as the old stle reCaptcha. Provides of the box integration for signup, login, comment forms, lost password, Ninja Forms and contact form 7.
6
+ Version: 1.0.1
7
  Author: Jörn Lund
8
  Author URI: https://github.com/mcguffin/
9
  */
197
  function recaptchaLoadCallback(){
198
  var e=document.getElementsByClassName('g-recaptcha');
199
  for (var i=0;i<e.length;i++)
200
+ grecaptcha.render(e[i],{'sitekey':'<?php echo $this->get_option('recaptcha_publickey'); ?>','theme':'<?php echo $this->get_option('recaptcha_theme'); ?>'});
201
  }
202
  </script><?php
203
  ?><script src="https://www.google.com/recaptcha/api.js?onload=recaptchaLoadCallback&render=explicit" async defer></script><?php