Version Description
- An additional header is added for the technical improvement in the log tracking.
- Enhanced the plugin to be compatible with WordPress version 6.0.2.
- Technical improvement in the contact create.
Download this release
Release Info
Developer | gouravgupta24 |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 3.1.48 |
Comparing to | |
See all releases |
Code changes from version 3.1.47 to 3.1.48
- inc/SendinblueApiClient.php +1 -1
- inc/mailin.php +3 -1
- inc/sib-api-manager.php +10 -6
- readme.txt +8 -3
- sendinblue.php +1 -1
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 |
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.48';
|
18 |
const USER_AGENT = 'sendinblue_plugins/wordpress';
|
19 |
|
20 |
private $apiKey;
|
inc/mailin.php
CHANGED
@@ -34,7 +34,9 @@ class Mailin
|
|
34 |
'sslverify' => $ssl_verify,
|
35 |
'headers' => array(
|
36 |
'api-key' => $this->api_key,
|
37 |
-
'Content-Type'=> 'application/json'
|
|
|
|
|
38 |
);
|
39 |
$args['body'] = $input;
|
40 |
|
34 |
'sslverify' => $ssl_verify,
|
35 |
'headers' => array(
|
36 |
'api-key' => $this->api_key,
|
37 |
+
'Content-Type'=> 'application/json',
|
38 |
+
'User-Agent' => 'sendinblue_plugins/wordpress',
|
39 |
+
),
|
40 |
);
|
41 |
$args['body'] = $input;
|
42 |
|
inc/sib-api-manager.php
CHANGED
@@ -456,7 +456,8 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
|
|
456 |
'emailBlacklisted' => false,
|
457 |
'smsBlacklisted' => false,
|
458 |
'listIds' => $listid,
|
459 |
-
'unlinkListIds' => $list_unlink
|
|
|
460 |
];
|
461 |
} else {
|
462 |
if($info['DOUBLE_OPT-IN'] == '1'){
|
@@ -466,8 +467,9 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
|
|
466 |
'emailBlacklisted' => false,
|
467 |
'smsBlacklisted' => false,
|
468 |
'listIds' => $listid,
|
469 |
-
'unlinkListIds' => $list_unlink
|
470 |
-
|
|
|
471 |
} else {
|
472 |
$data = [
|
473 |
'email' => $email,
|
@@ -475,11 +477,12 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
|
|
475 |
'emailBlacklisted' => (($user["emailBlacklisted"] == '1') ? $user["emailBlacklisted"] : false),
|
476 |
'smsBlacklisted' => false,
|
477 |
'listIds' => $listid,
|
478 |
-
'unlinkListIds' => $list_unlink
|
|
|
479 |
];
|
480 |
}
|
481 |
}
|
482 |
-
$mailin->
|
483 |
$exist = $mailin->getLastResponseCode() == 204 ? 'success' : '' ;
|
484 |
} else {
|
485 |
$info['sibInternalSource'] = self::PLUGIN_NAME;
|
@@ -489,7 +492,8 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
|
|
489 |
'attributes' => $info,
|
490 |
'emailBlacklisted' => false,
|
491 |
'smsBlacklisted' => false,
|
492 |
-
'listIds' => $listid
|
|
|
493 |
];
|
494 |
|
495 |
$created_user = $mailin->createUser( $data );
|
456 |
'emailBlacklisted' => false,
|
457 |
'smsBlacklisted' => false,
|
458 |
'listIds' => $listid,
|
459 |
+
'unlinkListIds' => $list_unlink,
|
460 |
+
'updateEnabled' => true
|
461 |
];
|
462 |
} else {
|
463 |
if($info['DOUBLE_OPT-IN'] == '1'){
|
467 |
'emailBlacklisted' => false,
|
468 |
'smsBlacklisted' => false,
|
469 |
'listIds' => $listid,
|
470 |
+
'unlinkListIds' => $list_unlink,
|
471 |
+
'updateEnabled' => true
|
472 |
+
];
|
473 |
} else {
|
474 |
$data = [
|
475 |
'email' => $email,
|
477 |
'emailBlacklisted' => (($user["emailBlacklisted"] == '1') ? $user["emailBlacklisted"] : false),
|
478 |
'smsBlacklisted' => false,
|
479 |
'listIds' => $listid,
|
480 |
+
'unlinkListIds' => $list_unlink,
|
481 |
+
'updateEnabled' => true
|
482 |
];
|
483 |
}
|
484 |
}
|
485 |
+
$mailin->createUser( $data );
|
486 |
$exist = $mailin->getLastResponseCode() == 204 ? 'success' : '' ;
|
487 |
} else {
|
488 |
$info['sibInternalSource'] = self::PLUGIN_NAME;
|
492 |
'attributes' => $info,
|
493 |
'emailBlacklisted' => false,
|
494 |
'smsBlacklisted' => false,
|
495 |
+
'listIds' => $listid,
|
496 |
+
'updateEnabled' => true
|
497 |
];
|
498 |
|
499 |
$created_user = $mailin->createUser( $data );
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: neeraj_slit
|
3 |
Tags: Email Marketing, Newsletter, Sendinblue, Forms, smtp, marketing automation, email campaign, WordPress smtp, subscription form, email, marketing, signup form
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 6.0.
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -116,6 +116,11 @@ In order to create a signup form, you need to:
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
|
|
|
|
|
|
|
|
|
|
119 |
= 3.1.47 =
|
120 |
* Fixed the issue related to backward compatibility.
|
121 |
|
@@ -133,7 +138,7 @@ In order to create a signup form, you need to:
|
|
133 |
* Added required javascript file for push notification support.
|
134 |
|
135 |
= 3.1.42 =
|
136 |
-
* Enhanced the plugin to be compatible upto
|
137 |
|
138 |
= 3.1.41 =
|
139 |
* UI fixes for the form building page and user synchronization popup.
|
2 |
Contributors: neeraj_slit
|
3 |
Tags: Email Marketing, Newsletter, Sendinblue, Forms, smtp, marketing automation, email campaign, WordPress smtp, subscription form, email, marketing, signup form
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 6.0.2
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 3.1.48
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
+
= 3.1.48 =
|
120 |
+
* An additional header is added for the technical improvement in the log tracking.
|
121 |
+
* Enhanced the plugin to be compatible with WordPress version 6.0.2.
|
122 |
+
* Technical improvement in the contact create.
|
123 |
+
|
124 |
= 3.1.47 =
|
125 |
* Fixed the issue related to backward compatibility.
|
126 |
|
138 |
* Added required javascript file for push notification support.
|
139 |
|
140 |
= 3.1.42 =
|
141 |
+
* Enhanced the plugin to be compatible upto WordPress version 6.0
|
142 |
|
143 |
= 3.1.41 =
|
144 |
* UI fixes for the form building page and user synchronization popup.
|
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.48
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|