Version Description
Bug fixes
- Fixed the unwanted backslash issue when adding apostrophe in text field at forms or at forms settings.
Download this release
Release Info
Developer | neeraj_slit |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 3.1.6 |
Comparing to | |
See all releases |
Code changes from version 3.1.5 to 3.1.6
- inc/SendinblueApiClient.php +1 -1
- page/page-form.php +3 -3
- readme.txt +5 -0
- sendinblue.php +4 -4
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 |
|
19 |
private $apiKey;
|
20 |
private $lastResponseCode;
|
14 |
const RESPONSE_CODE_CREATED = 201;
|
15 |
const RESPONSE_CODE_ACCEPTED = 202;
|
16 |
const RESPONSE_CODE_UNAUTHORIZED = 401;
|
17 |
+
const PLUGIN_VERSION = '3.1.6';
|
18 |
|
19 |
private $apiKey;
|
20 |
private $lastResponseCode;
|
page/page-form.php
CHANGED
@@ -864,9 +864,9 @@ For your information, you cannot select a template with the tag [DOUBLEOPTIN].',
|
|
864 |
check_admin_referer( 'sib_setting_subscription' );
|
865 |
|
866 |
//Handling of backslash added by WP because magic quotes are enabled by default
|
867 |
-
|
868 |
-
$
|
869 |
-
}
|
870 |
|
871 |
// Subscription form.
|
872 |
$formID = isset( $_POST['sib_form_id'] ) ? sanitize_text_field( $_POST['sib_form_id'] ) : '';
|
864 |
check_admin_referer( 'sib_setting_subscription' );
|
865 |
|
866 |
//Handling of backslash added by WP because magic quotes are enabled by default
|
867 |
+
array_walk_recursive( $_POST, function(&$value) {
|
868 |
+
$value = stripslashes($value);
|
869 |
+
});
|
870 |
|
871 |
// Subscription form.
|
872 |
$formID = isset( $_POST['sib_form_id'] ) ? sanitize_text_field( $_POST['sib_form_id'] ) : '';
|
readme.txt
CHANGED
@@ -115,6 +115,11 @@ In order to create a signup form, you need to:
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
|
|
|
|
118 |
= 3.1.5 =
|
119 |
**Bug fixes**
|
120 |
|
115 |
|
116 |
== Changelog ==
|
117 |
|
118 |
+
= 3.1.6 =
|
119 |
+
**Bug fixes**
|
120 |
+
|
121 |
+
* Fixed the unwanted backslash issue when adding apostrophe in text field at forms or at forms settings.
|
122 |
+
|
123 |
= 3.1.5 =
|
124 |
**Bug fixes**
|
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.
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
@@ -612,9 +612,9 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
|
|
612 |
*/
|
613 |
function signup_process() {
|
614 |
//Handling of backslash added by WP because magic quotes are enabled by default
|
615 |
-
|
616 |
-
$
|
617 |
-
}
|
618 |
|
619 |
if ( empty( $_POST['sib_security'] ) ) {
|
620 |
wp_send_json(
|
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.6
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
612 |
*/
|
613 |
function signup_process() {
|
614 |
//Handling of backslash added by WP because magic quotes are enabled by default
|
615 |
+
array_walk_recursive( $_POST, function(&$value) {
|
616 |
+
$value = stripslashes($value);
|
617 |
+
});
|
618 |
|
619 |
if ( empty( $_POST['sib_security'] ) ) {
|
620 |
wp_send_json(
|