Official MailerLite Sign Up Forms - Version 1.5.2

Version Description

  • Fix - Include Universal js
Download this release

Release Info

Developer mailerlite
Plugin Icon 128x128 Official MailerLite Sign Up Forms
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

Files changed (3) hide show
  1. mailerlite.php +2 -2
  2. readme.txt +4 -1
  3. src/Hooks.php +13 -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.1
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.1' );
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.2
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.2' );
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.1
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.1 =
134
  * Fix - Form clear issue
135
 
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.2
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.2 =
134
+ * Fix - Include Universal js
135
+
136
  = 1.5.1 =
137
  * Fix - Form clear issue
138
 
src/Hooks.php CHANGED
@@ -56,6 +56,19 @@ class Hooks
56
  );
57
  }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  add_action(
60
  'init', [
61
  '\MailerLiteForms\Hooks',
56
  );
57
  }
58
 
59
+ $mailerlite_api_key = get_option( 'mailerlite_api_key' );
60
+ $account_id = get_option( 'account_id' );
61
+ $account_subdomain = get_option( 'account_subdomain' );
62
+ $mailerlite_popups_disabled = get_option( 'mailerlite_popups_disabled' );
63
+
64
+ if ( ! $mailerlite_popups_disabled && $mailerlite_api_key && $account_id && $account_subdomain ) {
65
+
66
+ add_action( 'wp_head', [
67
+ '\MailerLiteForms\Helper',
68
+ 'mailerlite_universal'
69
+ ] );
70
+ }
71
+
72
  add_action(
73
  'init', [
74
  '\MailerLiteForms\Hooks',