Version Description
Improvements
- The subscribed contact from a double optin form would be created or updated on Sendinblue platform only on clicking the double optin link in the confirmation email.
- Removed the default message for Existing subscribers
Download this release
Release Info
Developer | amarsib |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 3.1.13 |
Comparing to | |
See all releases |
Code changes from version 3.1.12 to 3.1.13
- inc/SendinblueApiClient.php +1 -1
- inc/sib-api-manager.php +0 -5
- page/page-form.php +2 -0
- readme.txt +7 -0
- sendinblue.php +4 -6
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.13';
|
18 |
|
19 |
private $apiKey;
|
20 |
private $lastResponseCode;
|
inc/sib-api-manager.php
CHANGED
@@ -449,11 +449,6 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
|
|
449 |
|
450 |
if ($mailin->getLastResponseCode() === SendinblueApiClient::RESPONSE_CODE_OK && isset($user['email'])) {
|
451 |
unset($info["email"]);
|
452 |
-
if (isset($info["internalUserHistory"]) && is_array($info["internalUserHistory"])) {
|
453 |
-
$info["internalUserHistory"][] = array("action"=>"SUBSCRIBE_BY_PLUGIN", "id"=> 1, "name"=>"wordpress");
|
454 |
-
} else {
|
455 |
-
$info["internalUserHistory"] = array(array("action"=>"SUBSCRIBE_BY_PLUGIN", "id"=> 1, "name"=>"wordpress"));
|
456 |
-
}
|
457 |
if(!($type == 'double-optin')){
|
458 |
$data = [
|
459 |
'email' => $email,
|
449 |
|
450 |
if ($mailin->getLastResponseCode() === SendinblueApiClient::RESPONSE_CODE_OK && isset($user['email'])) {
|
451 |
unset($info["email"]);
|
|
|
|
|
|
|
|
|
|
|
452 |
if(!($type == 'double-optin')){
|
453 |
$data = [
|
454 |
'email' => $email,
|
page/page-form.php
CHANGED
@@ -778,6 +778,7 @@ For your information, you cannot select a template with the tag [DOUBLEOPTIN].',
|
|
778 |
<?php echo esc_html( SIB_Page_Home::get_narration_script( __( 'General message error', 'sib_lang' ), __( 'Set up the message that will appear when an error occurs during the subscritpion process', 'sib_lang' ) ) ); ?>
|
779 |
</div>
|
780 |
</div>
|
|
|
781 |
<div class="row sib-small-content">
|
782 |
<span class="col-md-3"><?php esc_attr_e( 'Existing subscribers', 'sib_lang' ); ?></span>
|
783 |
|
@@ -787,6 +788,7 @@ For your information, you cannot select a template with the tag [DOUBLEOPTIN].',
|
|
787 |
<?php echo esc_html( SIB_Page_Home::get_narration_script( __( 'Existing Suscribers', 'sib_lang' ), __( 'Set up the message that will appear when a suscriber is already in your database', 'sib_lang' ) ) ); ?>
|
788 |
</div>
|
789 |
</div>
|
|
|
790 |
<div class="row sib-small-content">
|
791 |
<span class="col-md-3"><?php esc_attr_e( 'Invalid email address', 'sib_lang' ); ?></span>
|
792 |
|
778 |
<?php echo esc_html( SIB_Page_Home::get_narration_script( __( 'General message error', 'sib_lang' ), __( 'Set up the message that will appear when an error occurs during the subscritpion process', 'sib_lang' ) ) ); ?>
|
779 |
</div>
|
780 |
</div>
|
781 |
+
<!--
|
782 |
<div class="row sib-small-content">
|
783 |
<span class="col-md-3"><?php esc_attr_e( 'Existing subscribers', 'sib_lang' ); ?></span>
|
784 |
|
788 |
<?php echo esc_html( SIB_Page_Home::get_narration_script( __( 'Existing Suscribers', 'sib_lang' ), __( 'Set up the message that will appear when a suscriber is already in your database', 'sib_lang' ) ) ); ?>
|
789 |
</div>
|
790 |
</div>
|
791 |
+
-->
|
792 |
<div class="row sib-small-content">
|
793 |
<span class="col-md-3"><?php esc_attr_e( 'Invalid email address', 'sib_lang' ); ?></span>
|
794 |
|
readme.txt
CHANGED
@@ -114,6 +114,13 @@ In order to create a signup form, you need to:
|
|
114 |
2. Integrate the form in a sidebar using a widget from WP panel > Appearance > Widgets. The Sendinblue widget form should appear in your widgets list, you just to have to drag and drop the widget into the sidebar of your choice.
|
115 |
|
116 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
= 3.1.12 =
|
118 |
**Improvements**
|
119 |
|
114 |
2. Integrate the form in a sidebar using a widget from WP panel > Appearance > Widgets. The Sendinblue widget form should appear in your widgets list, you just to have to drag and drop the widget into the sidebar of your choice.
|
115 |
|
116 |
== Changelog ==
|
117 |
+
|
118 |
+
= 3.1.13 =
|
119 |
+
**Improvements**
|
120 |
+
|
121 |
+
* The subscribed contact from a double optin form would be created or updated on Sendinblue platform only on clicking the double optin link in the confirmation email.
|
122 |
+
* Removed the default message for Existing subscribers
|
123 |
+
|
124 |
= 3.1.12 =
|
125 |
**Improvements**
|
126 |
|
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
|
@@ -727,12 +727,10 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
|
|
727 |
if ( $isDoubleOptin ) {
|
728 |
/*
|
729 |
* Double optin process
|
730 |
-
* 1. add
|
731 |
-
* 2.
|
732 |
-
* 3. send confirmation email with activate code
|
733 |
*/
|
734 |
-
|
735 |
-
$result = SIB_API_Manager::create_subscriber( 'double-optin', $email, $listID, $info, $unlinkedLists );
|
736 |
// Send a double optin confirm email.
|
737 |
if ( 'success' == $result ) {
|
738 |
// Add a recode with activate code in db.
|
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.13
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
727 |
if ( $isDoubleOptin ) {
|
728 |
/*
|
729 |
* Double optin process
|
730 |
+
* 1. add record to db
|
731 |
+
* 2. send confirmation email with activate code
|
|
|
732 |
*/
|
733 |
+
$result = "success";
|
|
|
734 |
// Send a double optin confirm email.
|
735 |
if ( 'success' == $result ) {
|
736 |
// Add a recode with activate code in db.
|