SendinBlue Subscribe Form And WP SMTP - Version 3.1.24

Version Description

  • Fixed an issue related to contact attributes not updating via DOI confirmation.
  • Fixed an issue related to an error message which not translated into French.
Download this release

Release Info

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

Code changes from version 3.1.23 to 3.1.24

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.23';
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.24';
18
  const USER_AGENT = 'sendinblue_plugins/wordpress';
19
 
20
  private $apiKey;
lang/sib_lang-fr_FR.mo CHANGED
Binary file
lang/sib_lang-fr_FR.po CHANGED
@@ -1194,10 +1194,8 @@ msgid "Please fill out valid date format"
1194
  msgstr "Veuillez entrer une date valide."
1195
 
1196
  #: ../sendinblue.php:372
1197
- #, fuzzy
1198
- #| msgid "Please fill out valid date format"
1199
  msgid "Please fill out valid phone number"
1200
- msgstr "Veuillez entrer une date valide."
1201
 
1202
  #: ../sendinblue.php:1118
1203
  #, fuzzy
1194
  msgstr "Veuillez entrer une date valide."
1195
 
1196
  #: ../sendinblue.php:372
 
 
1197
  msgid "Please fill out valid phone number"
1198
+ msgstr "Veuillez entrer une numéro de téléphone valide."
1199
 
1200
  #: ../sendinblue.php:1118
1201
  #, fuzzy
model/model-users.php CHANGED
@@ -246,4 +246,13 @@ class SIB_Model_Users {
246
  }
247
  }
248
 
 
 
 
 
 
 
 
 
 
249
  }
246
  }
247
  }
248
 
249
+ /** Update user data to the table */
250
+ public static function update_element( $data ) {
251
+ global $wpdb;
252
+ $query = $wpdb->prepare( 'update ' . $wpdb->prefix . self::TABLE_NAME . ' set info= %s where id= %d;', array( $data['info'], esc_sql( $data['id'] ) ) );
253
+ $wpdb->query( $query );
254
+
255
+ return true;
256
+ }
257
+
258
  }
page/page-form.php CHANGED
@@ -214,7 +214,7 @@ if ( ! class_exists( 'SIB_Page_Form' ) ) {
214
  <?php if ( isset( $_GET['lang'] ) ) { ?>
215
  <input type="hidden" name="lang" value="<?php echo sanitize_text_field( $_GET['lang'] ); ?>">
216
  <?php
217
- }
218
  }
219
  ?>
220
  <?php wp_nonce_field( 'sib_setting_subscription' ); ?>
214
  <?php if ( isset( $_GET['lang'] ) ) { ?>
215
  <input type="hidden" name="lang" value="<?php echo sanitize_text_field( $_GET['lang'] ); ?>">
216
  <?php
217
+ }
218
  }
219
  ?>
220
  <?php wp_nonce_field( 'sib_setting_subscription' ); ?>
readme.txt CHANGED
@@ -116,6 +116,10 @@ In order to create a signup form, you need to:
116
 
117
  == Changelog ==
118
 
 
 
 
 
119
  = 3.1.23 =
120
  * Enhanced the security of website tracking via automation by skipping the password field from the forms.
121
 
116
 
117
  == Changelog ==
118
 
119
+ = 3.1.24 =
120
+ * Fixed an issue related to contact attributes not updating via DOI confirmation.
121
+ * Fixed an issue related to an error message which not translated into French.
122
+
123
  = 3.1.23 =
124
  * Enhanced the security of website tracking via automation by skipping the password field from the forms.
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.23
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
@@ -801,6 +801,12 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
801
  );
802
  SIB_Model_Users::add_record( $data );
803
  } else {
 
 
 
 
 
 
804
  $uniqid = $data['code'];
805
  }
806
  return $uniqid;
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.24
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
801
  );
802
  SIB_Model_Users::add_record( $data );
803
  } else {
804
+ $update_data = array(
805
+ 'id' => $data['id'],
806
+ 'email' => $email,
807
+ 'info' => maybe_serialize( $info ),
808
+ );
809
+ SIB_Model_Users::update_element( $update_data );
810
  $uniqid = $data['code'];
811
  }
812
  return $uniqid;