Version Description
- Update - API client
Download this release
Release Info
Developer | mailerlite |
Plugin | Official MailerLite Sign Up Forms |
Version | 1.5.9 |
Comparing to | |
See all releases |
Code changes from version 1.5.8 to 1.5.9
- mailerlite.php +2 -2
- readme.txt +4 -1
- src/Api/Client.php +2 -0
mailerlite.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: MailerLite - Signup forms (official)
|
4 |
* Description: Official MailerLite Signup forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
|
5 |
-
* Version: 1.5.
|
6 |
* Author: MailerLite
|
7 |
* Author URI: https://www.mailerlite.com
|
8 |
* License: GPLv2 or later
|
@@ -33,7 +33,7 @@ define( 'MAILERLITE_PLUGIN_URL', plugins_url( '', __FILE__ ) );
|
|
33 |
// Plugin basename
|
34 |
define( 'MAILERLITE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
35 |
|
36 |
-
define( 'MAILERLITE_VERSION', '1.5.
|
37 |
|
38 |
define( 'MAILERLITE_PHP_VERSION', '7.2.5' );
|
39 |
define( 'MAILERLITE_WP_VERSION', '3.0.1' );
|
2 |
/**
|
3 |
* Plugin Name: MailerLite - Signup forms (official)
|
4 |
* Description: Official MailerLite Signup forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
|
5 |
+
* Version: 1.5.9
|
6 |
* Author: MailerLite
|
7 |
* Author URI: https://www.mailerlite.com
|
8 |
* License: GPLv2 or later
|
33 |
// Plugin basename
|
34 |
define( 'MAILERLITE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
35 |
|
36 |
+
define( 'MAILERLITE_VERSION', '1.5.9' );
|
37 |
|
38 |
define( 'MAILERLITE_PHP_VERSION', '7.2.5' );
|
39 |
define( 'MAILERLITE_WP_VERSION', '3.0.1' );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: mailerlite, newsletter, subscribe, form, webform
|
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 6.0.1
|
7 |
Requires PHP: 7.2.5
|
8 |
-
Stable tag: 1.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -130,6 +130,9 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
133 |
= 1.5.8 =
|
134 |
* Security fix
|
135 |
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 6.0.1
|
7 |
Requires PHP: 7.2.5
|
8 |
+
Stable tag: 1.5.9
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 1.5.9 =
|
134 |
+
* Update - API client
|
135 |
+
|
136 |
= 1.5.8 =
|
137 |
* Security fix
|
138 |
|
src/Api/Client.php
CHANGED
@@ -32,6 +32,7 @@ class Client
|
|
32 |
|
33 |
$args['body'] = $args;
|
34 |
$args['headers'] = $this->headers;
|
|
|
35 |
|
36 |
return wp_remote_get($this->url.$endpoint, $args);
|
37 |
}
|
@@ -48,6 +49,7 @@ class Client
|
|
48 |
$params = [];
|
49 |
$params['headers'] = $this->headers;
|
50 |
$params['body'] = json_encode( $args );
|
|
|
51 |
|
52 |
return wp_remote_post($this->url.$endpoint, $params);
|
53 |
}
|
32 |
|
33 |
$args['body'] = $args;
|
34 |
$args['headers'] = $this->headers;
|
35 |
+
$args['user-agent'] = 'MailerLite Forms/' . MAILERLITE_VERSION;
|
36 |
|
37 |
return wp_remote_get($this->url.$endpoint, $args);
|
38 |
}
|
49 |
$params = [];
|
50 |
$params['headers'] = $this->headers;
|
51 |
$params['body'] = json_encode( $args );
|
52 |
+
$params['user-agent'] = 'MailerLite Forms/' . MAILERLITE_VERSION;
|
53 |
|
54 |
return wp_remote_post($this->url.$endpoint, $params);
|
55 |
}
|