Official MailerLite Sign Up Forms - Version 1.1.21

Version Description

small bugfixes

Download this release

Release Info

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

Code changes from version 1.1.20 to 1.1.21

include/mailerlite-form.php CHANGED
@@ -218,12 +218,12 @@ function mailerlite_universal() { ?>
218
  <!-- MailerLite Universal -->
219
  <script>
220
  (function(m,a,i,l,e,r){m['MailerLiteObject']=e;function f(){
221
- var c={a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
222
- f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=f.q;r=a.createElement(i);
223
- var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l;_.parentNode.insertBefore(r,_);
224
- })(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml');
225
 
226
- ml('accounts', '<?php echo get_option('account_id'); ?>', '<?php echo get_option('account_subdomain'); ?>', 'load');
227
  </script>
228
  <!-- End MailerLite Universal -->
229
  <?php }
218
  <!-- MailerLite Universal -->
219
  <script>
220
  (function(m,a,i,l,e,r){m['MailerLiteObject']=e;function f(){
221
+ var c={a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
222
+ f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);
223
+ var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?'+(~~(new Date().getTime()/10000000));
224
+ _.parentNode.insertBefore(r,_);})(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml');
225
 
226
+ var ml_account = ml('accounts', '<?php echo get_option('account_id'); ?>', '<?php echo get_option('account_subdomain'); ?>', 'load');
227
  </script>
228
  <!-- End MailerLite Universal -->
229
  <?php }
include/templates/admin/create.php CHANGED
@@ -24,7 +24,7 @@
24
 
25
  <p>
26
  <?php
27
- $embed_button_webforms = [];
28
 
29
  foreach ($webforms->Results as $webform) {
30
  if (!in_array($webform->type, array('embed', 'button'))) { continue; }
24
 
25
  <p>
26
  <?php
27
+ $embed_button_webforms = array();
28
 
29
  foreach ($webforms->Results as $webform) {
30
  if (!in_array($webform->type, array('embed', 'button'))) { continue; }
mailerlite.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
6
- * Version: 1.1.20
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
@@ -27,7 +27,7 @@
27
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
28
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
29
 
30
- define('MAILERLITE_VERSION', '1.1.20');
31
 
32
  define('MAILERLITE_PHP_VERSION', '5.0.1');
33
  define('MAILERLITE_WP_VERSION', '3.0.1');
3
  /**
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
6
+ * Version: 1.1.21
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
27
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
28
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
29
 
30
+ define('MAILERLITE_VERSION', '1.1.21');
31
 
32
  define('MAILERLITE_PHP_VERSION', '5.0.1');
33
  define('MAILERLITE_WP_VERSION', '3.0.1');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.mailerlite.com/
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.7
7
- Stable tag: 1.1.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -127,6 +127,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
127
 
128
  == Changelog ==
129
 
 
 
130
  = 1.1.20 =
131
  curl error showing, empty embed form bugfix, other bugfixes
132
  = 1.1.19 =
@@ -210,6 +212,8 @@ translation errors for LT language, allowing only embed and button forms
210
 
211
  == Upgrade Notice ==
212
 
 
 
213
  = 1.1.20 =
214
  curl error showing, empty embed form bugfix, other bugfixes
215
  = 1.1.19 =
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.7
7
+ Stable tag: 1.1.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 1.1.21 =
131
+ small bugfixes
132
  = 1.1.20 =
133
  curl error showing, empty embed form bugfix, other bugfixes
134
  = 1.1.19 =
212
 
213
  == Upgrade Notice ==
214
 
215
+ = 1.1.21 =
216
+ small bugfixes
217
  = 1.1.20 =
218
  curl error showing, empty embed form bugfix, other bugfixes
219
  = 1.1.19 =