Version Description
- Fix - Form clear issue
Download this release
Release Info
Developer | mailerlite |
Plugin | Official MailerLite Sign Up Forms |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- mailerlite.php +2 -2
- readme.txt +4 -1
- src/Admin/Settings.php +1 -1
- src/Admin/Status.php +1 -1
- src/Modules/Form.php +1 -1
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.1
|
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.1' );
|
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: 5.8.3
|
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.0 =
|
134 |
* Tested with WordPress 5.8.3
|
135 |
* Update - Gutenberg plugin in plain JS
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.8.3
|
7 |
Requires PHP: 7.2.5
|
8 |
+
Stable tag: 1.5.1
|
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.1 =
|
134 |
+
* Fix - Form clear issue
|
135 |
+
|
136 |
= 1.5.0 =
|
137 |
* Tested with WordPress 5.8.3
|
138 |
* Update - Gutenberg plugin in plain JS
|
src/Admin/Settings.php
CHANGED
@@ -73,7 +73,7 @@ class Settings
|
|
73 |
});
|
74 |
}else{
|
75 |
|
76 |
-
if ( get_option( 'mailerlite_platform', 1) !== $ML_Lists->getApiType()
|
77 |
self::clearForms();
|
78 |
|
79 |
update_option( 'mailerlite_api_key', $key );
|
73 |
});
|
74 |
}else{
|
75 |
|
76 |
+
if (intval( get_option( 'mailerlite_platform', 1) ) !== $ML_Lists->getApiType())
|
77 |
self::clearForms();
|
78 |
|
79 |
update_option( 'mailerlite_api_key', $key );
|
src/Admin/Status.php
CHANGED
@@ -75,7 +75,7 @@ class Status
|
|
75 |
$fields[ $plugin_group ]['Version'] = MAILERLITE_VERSION;
|
76 |
$fields[ $plugin_group ]['API key provided'] = (bool) get_option( 'mailerlite_api_key' ) ? 'Yes' : 'No';
|
77 |
|
78 |
-
switch ( get_option('mailerlite_platform', 0) ) {
|
79 |
case ApiType::CURRENT: $fields[$plugin_group]['API type'] = "MailerLite v2"; break;
|
80 |
case ApiType::REWRITE: $fields[$plugin_group]['API type'] = "MailerLite API (Rewrite)"; break;
|
81 |
case ApiType::INVALID:
|
75 |
$fields[ $plugin_group ]['Version'] = MAILERLITE_VERSION;
|
76 |
$fields[ $plugin_group ]['API key provided'] = (bool) get_option( 'mailerlite_api_key' ) ? 'Yes' : 'No';
|
77 |
|
78 |
+
switch ( intval(get_option('mailerlite_platform', 0)) ) {
|
79 |
case ApiType::CURRENT: $fields[$plugin_group]['API type'] = "MailerLite v2"; break;
|
80 |
case ApiType::REWRITE: $fields[$plugin_group]['API type'] = "MailerLite API (Rewrite)"; break;
|
81 |
case ApiType::INVALID:
|
src/Modules/Form.php
CHANGED
@@ -31,7 +31,7 @@ class Form
|
|
31 |
public function __construct()
|
32 |
{
|
33 |
|
34 |
-
$this->platform = get_option( 'mailerlite_platform', 1);
|
35 |
}
|
36 |
|
37 |
/**
|
31 |
public function __construct()
|
32 |
{
|
33 |
|
34 |
+
$this->platform = intval(get_option( 'mailerlite_platform', 1));
|
35 |
}
|
36 |
|
37 |
/**
|