Version Description
- Fixed the issue related to backward compatibility.
Download this release
Release Info
Developer | gouravgupta24 |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 3.1.47 |
Comparing to | |
See all releases |
Code changes from version 3.1.46 to 3.1.47
- inc/SendinblueApiClient.php +1 -1
- inc/sib-form-preview.php +2 -4
- js/admin.js +1 -1
- readme.txt +4 -1
- sendinblue.php +10 -1
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.
|
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.47';
|
18 |
const USER_AGENT = 'sendinblue_plugins/wordpress';
|
19 |
|
20 |
private $apiKey;
|
inc/sib-form-preview.php
CHANGED
@@ -26,10 +26,8 @@ wp_head();
|
|
26 |
?>
|
27 |
<script type="text/javascript">
|
28 |
var onloadSibCallback = function () {
|
29 |
-
|
30 |
-
|
31 |
-
'sitekey': jQuery(el).attr('data-sitekey')
|
32 |
-
});
|
33 |
});
|
34 |
};
|
35 |
</script>
|
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>
|
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"
|
1009 |
}
|
1010 |
|
1011 |
if(site_key == '')
|
1005 |
|
1006 |
if(gCaptcha_type == '0')
|
1007 |
{
|
1008 |
+
field_html = '<div id="sib_captcha"></div>';
|
1009 |
}
|
1010 |
|
1011 |
if(site_key == '')
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: Email Marketing, Newsletter, Sendinblue, Forms, smtp, marketing automation
|
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 6.0.1
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -116,6 +116,9 @@ In order to create a signup form, you need to:
|
|
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.
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 6.0.1
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 3.1.47
|
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.47 =
|
120 |
+
* Fixed the issue related to backward compatibility.
|
121 |
+
|
122 |
= 3.1.46 =
|
123 |
* Enhanced the plugin to be compatible with WordPress version 6.0.1.
|
124 |
* Fixed issue related to multiple Google reCaptcha on the same page.
|
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.
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
@@ -706,6 +706,15 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
|
|
706 |
</div>
|
707 |
<?php
|
708 |
// phpcs:ignore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
709 |
echo wp_kses($formData['html'], SIB_Manager::wordpress_allowed_attributes());
|
710 |
?>
|
711 |
</div>
|
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.47
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
706 |
</div>
|
707 |
<?php
|
708 |
// phpcs:ignore
|
709 |
+
|
710 |
+
if (false === strpos($formData['html'], 'class="g-recaptcha"')) {
|
711 |
+
$formData['html'] = str_replace(
|
712 |
+
'id="sib_captcha"',
|
713 |
+
'id="sib_captcha" class="g-recaptcha" data-sitekey="' . $formData['gCaptcha_site'] . '"',
|
714 |
+
$formData['html']
|
715 |
+
);
|
716 |
+
}
|
717 |
+
|
718 |
echo wp_kses($formData['html'], SIB_Manager::wordpress_allowed_attributes());
|
719 |
?>
|
720 |
</div>
|