Version Description
Improvements
- Improve technical performance of the plugin
Download this release
Release Info
Developer | amarsib |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 3.1.14 |
Comparing to | |
See all releases |
Code changes from version 3.1.13 to 3.1.14
- inc/SendinblueApiClient.php +3 -2
- inc/sib-api-manager.php +4 -1
- readme.txt +5 -0
- sendinblue.php +1 -1
inc/SendinblueApiClient.php
CHANGED
@@ -14,7 +14,8 @@ 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;
|
@@ -337,7 +338,7 @@ class SendinblueApiClient
|
|
337 |
'api-key' => $this->apiKey,
|
338 |
'sib-plugin' => 'wp-'.self::PLUGIN_VERSION,
|
339 |
'Content-Type' => 'application/json',
|
340 |
-
'User-Agent' =>
|
341 |
],
|
342 |
];
|
343 |
|
14 |
const RESPONSE_CODE_CREATED = 201;
|
15 |
const RESPONSE_CODE_ACCEPTED = 202;
|
16 |
const RESPONSE_CODE_UNAUTHORIZED = 401;
|
17 |
+
const PLUGIN_VERSION = '3.1.14';
|
18 |
+
const USER_AGENT = 'sendinblue_plugins/wordpress';
|
19 |
|
20 |
private $apiKey;
|
21 |
private $lastResponseCode;
|
338 |
'api-key' => $this->apiKey,
|
339 |
'sib-plugin' => 'wp-'.self::PLUGIN_VERSION,
|
340 |
'Content-Type' => 'application/json',
|
341 |
+
'User-Agent' => self::USER_AGENT
|
342 |
],
|
343 |
];
|
344 |
|
inc/sib-api-manager.php
CHANGED
@@ -16,6 +16,8 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
|
|
16 |
|
17 |
/** Transient delay time */
|
18 |
const DELAYTIME = 900;
|
|
|
|
|
19 |
|
20 |
/**
|
21 |
* SIB_API_Manager constructor.
|
@@ -482,7 +484,8 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
|
|
482 |
$mailin->updateUser($email ,$data );
|
483 |
$exist = $mailin->getLastResponseCode() == 204 ? 'success' : '' ;
|
484 |
} else {
|
485 |
-
$info[
|
|
|
486 |
$data = [
|
487 |
'email' => $email,
|
488 |
'attributes' => $info,
|
16 |
|
17 |
/** Transient delay time */
|
18 |
const DELAYTIME = 900;
|
19 |
+
/** Constant for Plugin name */
|
20 |
+
const PLUGIN_NAME = 'wordpress';
|
21 |
|
22 |
/**
|
23 |
* SIB_API_Manager constructor.
|
484 |
$mailin->updateUser($email ,$data );
|
485 |
$exist = $mailin->getLastResponseCode() == 204 ? 'success' : '' ;
|
486 |
} else {
|
487 |
+
$info['sibInternalSource'] = self::PLUGIN_NAME;
|
488 |
+
$info["internalUserHistory"] = array( array( "action" => "SUBSCRIBE_BY_PLUGIN", "id" => 1, "name" => self::PLUGIN_NAME ) );
|
489 |
$data = [
|
490 |
'email' => $email,
|
491 |
'attributes' => $info,
|
readme.txt
CHANGED
@@ -115,6 +115,11 @@ In order to create a signup form, you need to:
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
|
|
|
|
118 |
= 3.1.13 =
|
119 |
**Improvements**
|
120 |
|
115 |
|
116 |
== Changelog ==
|
117 |
|
118 |
+
= 3.1.14 =
|
119 |
+
**Improvements**
|
120 |
+
|
121 |
+
* Improve technical performance of the plugin
|
122 |
+
|
123 |
= 3.1.13 =
|
124 |
**Improvements**
|
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
|
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.14
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|