SendinBlue Subscribe Form And WP SMTP - Version 3.1.25

Version Description

  • Fixed an issue related to XSS reflected Vulnerability.
  • Add more default attributes to map with Sendinblue account.
  • Add UTM tracking links to some hyperlinks.
  • Fixed an issue related to attributes in French not showing correctly.
Download this release

Release Info

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

Code changes from version 3.1.24 to 3.1.25

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.24';
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.25';
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
@@ -975,59 +975,73 @@ msgstr ""
975
  "Choisissez à quelle(s) liste(s) vos contacts existants seront ajoutés :"
976
 
977
  #: ../page/page-home.php:503
978
- #, fuzzy
979
- #| msgid "Form Name"
980
  msgid "First Name"
981
- msgstr "Nom du Formulaire"
982
 
983
  #: ../page/page-home.php:504
984
- #, fuzzy
985
- #| msgid "Last Update"
986
  msgid "Last Name"
987
- msgstr "Dernière modification"
988
 
989
  #: ../page/page-home.php:505
990
- #, fuzzy
991
- #| msgid "Website Event"
992
  msgid "Website URL"
993
- msgstr "Evènement du site"
994
 
995
  #: ../page/page-home.php:506
996
  msgid "User Role"
997
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
998
 
999
- #: ../page/page-home.php:513
1000
  msgid "Match Attributes"
1001
  msgstr "Mapping des champs"
1002
 
1003
- #: ../page/page-home.php:516
1004
  msgid "WordPress Users Attributes"
1005
  msgstr "Attributs des utilisateurs WordPress"
1006
 
1007
- #: ../page/page-home.php:519
1008
  msgid "Sendinblue Contact Attributes"
1009
  msgstr "Attributs de contact Sendinblue"
1010
 
1011
- #: ../page/page-home.php:552 ../page/page-statistics.php:133
1012
  msgid "Apply"
1013
  msgstr "Appliquer"
1014
 
1015
- #: ../page/page-home.php:639
1016
  msgid "[Sendinblue SMTP] test email"
1017
  msgstr "email de test [Sendinblue SMTP]"
1018
 
1019
- #: ../page/page-home.php:695
1020
  #, fuzzy
1021
  #| msgid "Please select the lists"
1022
  msgid "Please select a user role."
1023
  msgstr "Veuillez sélectionner une ou plusieurs listes"
1024
 
1025
- #: ../page/page-home.php:702
1026
  #, php-format
1027
  msgid "The attribute %s is duplicated. You can select one at a time."
1028
  msgstr ""
1029
 
1030
- #: ../page/page-home.php:751
1031
  msgid "There is not any user in the roles."
1032
  msgstr ""
1033
 
975
  "Choisissez à quelle(s) liste(s) vos contacts existants seront ajoutés :"
976
 
977
  #: ../page/page-home.php:503
 
 
978
  msgid "First Name"
979
+ msgstr "Prénom"
980
 
981
  #: ../page/page-home.php:504
 
 
982
  msgid "Last Name"
983
+ msgstr "Nom"
984
 
985
  #: ../page/page-home.php:505
 
 
986
  msgid "Website URL"
987
+ msgstr "URL de votre site"
988
 
989
  #: ../page/page-home.php:506
990
  msgid "User Role"
991
+ msgstr "Rôle utilisateur"
992
+
993
+ #: ../page/page-home.php:507
994
+ msgid "Username"
995
+ msgstr "Nom d'utilisateur"
996
+
997
+ #: ../page/page-home.php:508
998
+ msgid "Nickname"
999
+ msgstr "Surnom"
1000
+
1001
+ #: ../page/page-home.php:509
1002
+ msgid "User Registration Date"
1003
+ msgstr "Date d'enregistrement de l'utilisateur"
1004
+
1005
+ #: ../page/page-home.php:510
1006
+ msgid "Display Name"
1007
+ msgstr "Nom à afficher"
1008
+
1009
+ #: ../page/page-home.php:511
1010
+ msgid "Description about user"
1011
+ msgstr "Description de l'utilisateur"
1012
 
1013
+ #: ../page/page-home.php:518
1014
  msgid "Match Attributes"
1015
  msgstr "Mapping des champs"
1016
 
1017
+ #: ../page/page-home.php:521
1018
  msgid "WordPress Users Attributes"
1019
  msgstr "Attributs des utilisateurs WordPress"
1020
 
1021
+ #: ../page/page-home.php:524
1022
  msgid "Sendinblue Contact Attributes"
1023
  msgstr "Attributs de contact Sendinblue"
1024
 
1025
+ #: ../page/page-home.php:557 ../page/page-statistics.php:133
1026
  msgid "Apply"
1027
  msgstr "Appliquer"
1028
 
1029
+ #: ../page/page-home.php:644
1030
  msgid "[Sendinblue SMTP] test email"
1031
  msgstr "email de test [Sendinblue SMTP]"
1032
 
1033
+ #: ../page/page-home.php:701
1034
  #, fuzzy
1035
  #| msgid "Please select the lists"
1036
  msgid "Please select a user role."
1037
  msgstr "Veuillez sélectionner une ou plusieurs listes"
1038
 
1039
+ #: ../page/page-home.php:707
1040
  #, php-format
1041
  msgid "The attribute %s is duplicated. You can select one at a time."
1042
  msgstr ""
1043
 
1044
+ #: ../page/page-home.php:756
1045
  msgid "There is not any user in the roles."
1046
  msgstr ""
1047
 
page/page-form.php CHANGED
@@ -211,8 +211,10 @@ if ( ! class_exists( 'SIB_Page_Form' ) ) {
211
  if ( isset( $_GET['pid'] ) ) {
212
  ?>
213
  <input type="hidden" name="pid" value="<?php echo sanitize_text_field( $_GET['pid'] ); ?>">
214
- <?php if ( isset( $_GET['lang'] ) ) { ?>
215
- <input type="hidden" name="lang" value="<?php echo sanitize_text_field( $_GET['lang'] ); ?>">
 
 
216
  <?php
217
  }
218
  }
211
  if ( isset( $_GET['pid'] ) ) {
212
  ?>
213
  <input type="hidden" name="pid" value="<?php echo sanitize_text_field( $_GET['pid'] ); ?>">
214
+ <?php
215
+ $lang = isset( $_GET['lang'] ) ? esc_attr( $_GET['lang'] ) : '';
216
+ if ( $lang ) { ?>
217
+ <input type="hidden" name="lang" value="<?php echo $lang; ?>">
218
  <?php
219
  }
220
  }
page/page-home.php CHANGED
@@ -337,7 +337,7 @@ if ( ! class_exists( 'SIB_Page_Home' ) ) {
337
  </div>
338
  </div>
339
  <div class="row" style="">
340
- <p class="col-md-4 text-left" style="font-size: 13px; font-style: italic;"><?php printf( esc_attr__( '%s Explore our resource %s to learn more about Sendinblue Automation', 'sib_lang' ), '<a href="https://help.sendinblue.com/hc/en-us/articles/208775609" target="_blank">', '</a>' ); ?></p>
341
  <div class="col-md-3">
342
  <button type="button" id="validate_ma_btn" class="col-md-12 btn btn-primary"><span class="sib-spin"><i class="fa fa-circle-o-notch fa-spin fa-lg"></i>&nbsp;&nbsp;</span><?php esc_attr_e( 'Activate', 'sib_lang' ); ?></button>
343
  </div>
@@ -381,7 +381,7 @@ if ( ! class_exists( 'SIB_Page_Home' ) ) {
381
  <div class="panel-body">
382
  <p><?php esc_attr_e( 'Do you have a question or need more information?', 'sib_lang' ); ?></p>
383
  <ul class="sib-widget-menu">
384
- <li><a href="https://help.sendinblue.com/hc/en-us/sections/202171729" target="_blank"><i class="fa fa-angle-right"></i> &nbsp;<?php esc_attr_e( 'Tutorials', 'sib_lang' ); ?></a></li>
385
  <li><a href="https://resources.sendinblue.com/category/faq/?utm_source=wordpress_plugin&utm_medium=plugin&utm_campaign=module_link" target="_blank"><i class="fa fa-angle-right"></i> &nbsp;<?php esc_attr_e( 'FAQ', 'sib_lang' ); ?></a></li>
386
  </ul>
387
  <hr>
@@ -504,6 +504,11 @@ if ( ! class_exists( 'SIB_Page_Home' ) ) {
504
  'last_name' => __( 'Last Name','sib_lang' ),
505
  'user_url' => __( 'Website URL','sib_lang' ),
506
  'roles' => __( 'User Role','sib_lang' ),
 
 
 
 
 
507
  );
508
  // available sendinblue attributes.
509
  $sibAllAttrs = SIB_API_Manager::get_attributes();
337
  </div>
338
  </div>
339
  <div class="row" style="">
340
+ <p class="col-md-4 text-left" style="font-size: 13px; font-style: italic;"><?php printf( esc_attr__( '%s Explore our resource %s to learn more about Sendinblue Automation', 'sib_lang' ), '<a href="https://help.sendinblue.com/hc/en-us/articles/208775609/?utm_source=wordpress_plugin&utm_medium=plugin&utm_campaign=module_link" target="_blank">', '</a>' ); ?></p>
341
  <div class="col-md-3">
342
  <button type="button" id="validate_ma_btn" class="col-md-12 btn btn-primary"><span class="sib-spin"><i class="fa fa-circle-o-notch fa-spin fa-lg"></i>&nbsp;&nbsp;</span><?php esc_attr_e( 'Activate', 'sib_lang' ); ?></button>
343
  </div>
381
  <div class="panel-body">
382
  <p><?php esc_attr_e( 'Do you have a question or need more information?', 'sib_lang' ); ?></p>
383
  <ul class="sib-widget-menu">
384
+ <li><a href="https://help.sendinblue.com/hc/en-us/sections/202171729/?utm_source=wordpress_plugin&utm_medium=plugin&utm_campaign=module_link" target="_blank"><i class="fa fa-angle-right"></i> &nbsp;<?php esc_attr_e( 'Tutorials', 'sib_lang' ); ?></a></li>
385
  <li><a href="https://resources.sendinblue.com/category/faq/?utm_source=wordpress_plugin&utm_medium=plugin&utm_campaign=module_link" target="_blank"><i class="fa fa-angle-right"></i> &nbsp;<?php esc_attr_e( 'FAQ', 'sib_lang' ); ?></a></li>
386
  </ul>
387
  <hr>
504
  'last_name' => __( 'Last Name','sib_lang' ),
505
  'user_url' => __( 'Website URL','sib_lang' ),
506
  'roles' => __( 'User Role','sib_lang' ),
507
+ 'user_login' => __( 'Username','sib_lang' ),
508
+ 'nickname' => __( 'Nickname','sib_lang' ),
509
+ 'user_registered' => __( 'User Registration Date','sib_lang' ),
510
+ 'display_name' => __( 'Display Name','sib_lang' ),
511
+ 'description' => __( 'Description about user','sib_lang' ),
512
  );
513
  // available sendinblue attributes.
514
  $sibAllAttrs = SIB_API_Manager::get_attributes();
page/page-statistics.php CHANGED
@@ -129,7 +129,11 @@ if ( ! class_exists( 'SIB_Page_Statistics' ) ) {
129
  <div id="sib-statistics-date-container">
130
  <form method="POST" id="sib-statistics-form">
131
  <label for="sib-statistics-date"><?php esc_attr_e( 'Date', 'sib_lang' );?>: </label>
 
132
  <input id="sib-statistics-date" name="sib-statistics-date" value="<?php echo $date['statisticsDate']; ?>" autocomplete="off" class="button show-settings">
 
 
 
133
  <button id="apply-date-range" class="button action"><?php esc_attr_e( 'Apply', 'sib_lang'); ?></button>
134
  <span class="sib-spinner spinner"></span>
135
  </form>
@@ -233,7 +237,7 @@ if ( ! class_exists( 'SIB_Page_Statistics' ) ) {
233
  if (empty($_POST['sib-statistics-date'])) {
234
  $statisticsDate = date('Y-m-d');
235
  } else {
236
- $statisticsDate = sanitize_text_field($_POST['sib-statistics-date']);
237
  $date = explode(' - ', $statisticsDate);
238
 
239
  if (count($date) === 1) {
129
  <div id="sib-statistics-date-container">
130
  <form method="POST" id="sib-statistics-form">
131
  <label for="sib-statistics-date"><?php esc_attr_e( 'Date', 'sib_lang' );?>: </label>
132
+ <?php if (strtotime($date['statisticsDate']) !== false) { ?>
133
  <input id="sib-statistics-date" name="sib-statistics-date" value="<?php echo $date['statisticsDate']; ?>" autocomplete="off" class="button show-settings">
134
+ <?php } else { ?>
135
+ <input id="sib-statistics-date" name="sib-statistics-date" value="<?php echo date('Y-m-d'); ?>" autocomplete="off" class="button show-settings">
136
+ <?php } ?>
137
  <button id="apply-date-range" class="button action"><?php esc_attr_e( 'Apply', 'sib_lang'); ?></button>
138
  <span class="sib-spinner spinner"></span>
139
  </form>
237
  if (empty($_POST['sib-statistics-date'])) {
238
  $statisticsDate = date('Y-m-d');
239
  } else {
240
+ $statisticsDate = esc_attr($_POST['sib-statistics-date']);
241
  $date = explode(' - ', $statisticsDate);
242
 
243
  if (count($date) === 1) {
readme.txt CHANGED
@@ -116,6 +116,12 @@ In order to create a signup form, you need to:
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.
116
 
117
  == Changelog ==
118
 
119
+ = 3.1.25 =
120
+ * Fixed an issue related to XSS reflected Vulnerability.
121
+ * Add more default attributes to map with Sendinblue account.
122
+ * Add UTM tracking links to some hyperlinks.
123
+ * Fixed an issue related to attributes in French not showing correctly.
124
+
125
  = 3.1.24 =
126
  * Fixed an issue related to contact attributes not updating via DOI confirmation.
127
  * Fixed an issue related to an error message which not translated into French.
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.24
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
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.25
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later