SendinBlue Subscribe Form And WP SMTP - Version 3.1.46

Version Description

  • Enhanced the plugin to be compatible with WordPress version 6.0.1.
  • Fixed issue related to multiple Google reCaptcha on the same page.
Download this release

Release Info

Developer gouravgupta24
Plugin Icon 128x128 SendinBlue Subscribe Form And WP SMTP
Version 3.1.46
Comparing to
See all releases

Code changes from version 3.1.45 to 3.1.46

inc/SendinblueApiClient.php CHANGED
@@ -14,7 +14,7 @@ class SendinblueApiClient
14
  const RESPONSE_CODE_CREATED = 201;
15
  const RESPONSE_CODE_ACCEPTED = 202;
16
  const RESPONSE_CODE_UNAUTHORIZED = 401;
17
- const PLUGIN_VERSION = '3.1.45';
18
  const USER_AGENT = 'sendinblue_plugins/wordpress';
19
 
20
  private $apiKey;
14
  const RESPONSE_CODE_CREATED = 201;
15
  const RESPONSE_CODE_ACCEPTED = 202;
16
  const RESPONSE_CODE_UNAUTHORIZED = 401;
17
+ const PLUGIN_VERSION = '3.1.46';
18
  const USER_AGENT = 'sendinblue_plugins/wordpress';
19
 
20
  private $apiKey;
inc/sib-form-preview.php CHANGED
@@ -25,9 +25,11 @@ wp_head();
25
  if ( '3' == $formData['gCaptcha'] ) { // The case of using google recaptcha.
26
  ?>
27
  <script type="text/javascript">
28
- var onloadSibCallback = function() {
29
- grecaptcha.render('sib_captcha',{
30
- 'sitekey' : '<?php echo esc_attr( $formData["gCaptcha_site"] ) ?>'
 
 
31
  });
32
  };
33
  </script>
25
  if ( '3' == $formData['gCaptcha'] ) { // The case of using google recaptcha.
26
  ?>
27
  <script type="text/javascript">
28
+ var onloadSibCallback = function () {
29
+ jQuery('.g-recaptcha').each(function (index, el) {
30
+ grecaptcha.render(el, {
31
+ 'sitekey': jQuery(el).attr('data-sitekey')
32
+ });
33
  });
34
  };
35
  </script>
js/admin.js CHANGED
@@ -1005,7 +1005,7 @@ $jQ(document).ready(function(){
1005
 
1006
  if(gCaptcha_type == '0')
1007
  {
1008
- field_html = '<div id="sib_captcha"></div>';
1009
  }
1010
 
1011
  if(site_key == '')
1005
 
1006
  if(gCaptcha_type == '0')
1007
  {
1008
+ field_html = '<div id="sib_captcha" class="g-recaptcha" data-sitekey="' + site_key + '"></div>';
1009
  }
1010
 
1011
  if(site_key == '')
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: neeraj_slit
3
  Tags: Email Marketing, Newsletter, Sendinblue, Forms, smtp, marketing automation, email campaign, WordPress smtp, subscription form, email, marketing, signup form
4
  Requires at least: 4.4
5
- Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 3.1.45
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -116,6 +116,10 @@ In order to create a signup form, you need to:
116
 
117
  == Changelog ==
118
 
 
 
 
 
119
  = 3.1.45 =
120
  * Resolved conflict of the sender when both WooCommerce SMTP and Sendinblue SMTP are enabled.
121
 
2
  Contributors: neeraj_slit
3
  Tags: Email Marketing, Newsletter, Sendinblue, Forms, smtp, marketing automation, email campaign, WordPress smtp, subscription form, email, marketing, signup form
4
  Requires at least: 4.4
5
+ Tested up to: 6.0.1
6
  Requires PHP: 5.6
7
+ Stable tag: 3.1.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
116
 
117
  == Changelog ==
118
 
119
+ = 3.1.46 =
120
+ * Enhanced the plugin to be compatible with WordPress version 6.0.1.
121
+ * Fixed issue related to multiple Google reCaptcha on the same page.
122
+
123
  = 3.1.45 =
124
  * Resolved conflict of the sender when both WooCommerce SMTP and Sendinblue SMTP are enabled.
125
 
sendinblue.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
4
  * Plugin URI: https://www.sendinblue.com/?r=wporg
5
  * Description: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
6
- * Version: 3.1.45
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
@@ -131,6 +131,7 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
131
  'style' => true,
132
  'xml:lang' => true,
133
  'data-require' => true,
 
134
  ),
135
  'a' => array(
136
  'href' => true,
@@ -662,17 +663,15 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
662
  if ( '3' == $formData['gCaptcha'] ) // The case of using google recaptcha.
663
  {
664
  ?>
665
- <script type="text/javascript" charset="utf-8">
666
- var gCaptchaSibWidget;
667
- var onloadSibCallback = function() {
668
- var recaptchas = document.querySelectorAll('div[id=sib_captcha]');
669
- for( i = 0; i < recaptchas.length; i++) {
670
- gCaptchaSibWidget = grecaptcha.render(recaptchas[i], {
671
- 'sitekey' : '<?php echo esc_html($formData["gCaptcha_site"]) ?>'
672
- });
673
- }
674
- }
675
- </script>
676
  <?php
677
  }
678
  else { // The case of using google invisible recaptcha.
3
  * Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
4
  * Plugin URI: https://www.sendinblue.com/?r=wporg
5
  * Description: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
6
+ * Version: 3.1.46
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
131
  'style' => true,
132
  'xml:lang' => true,
133
  'data-require' => true,
134
+ 'data-sitekey' => true,
135
  ),
136
  'a' => array(
137
  'href' => true,
663
  if ( '3' == $formData['gCaptcha'] ) // The case of using google recaptcha.
664
  {
665
  ?>
666
+ <script type="text/javascript">
667
+ var onloadSibCallback = function () {
668
+ jQuery('.g-recaptcha').each(function (index, el) {
669
+ grecaptcha.render(el, {
670
+ 'sitekey': jQuery(el).attr('data-sitekey')
671
+ });
672
+ });
673
+ };
674
+ </script>
 
 
675
  <?php
676
  }
677
  else { // The case of using google invisible recaptcha.