Version Description
- Fix for WP 4.0
Download this release
Release Info
Developer | mailerlite |
Plugin | Official MailerLite Sign Up Forms |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- include/mailerlite-form.php +12 -4
- mailerlite.php +1 -1
- readme.txt +6 -2
include/mailerlite-form.php
CHANGED
@@ -117,14 +117,22 @@ class MailerLite_Form {
|
|
117 |
*/
|
118 |
public static function add_jquery_validation_libraries() {
|
119 |
|
120 |
-
if(!wp_script_is('jquery') && wp_script_is('google-hosted-jquery')) {
|
121 |
wp_register_script('google-hosted-jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', false);
|
122 |
-
wp_enqueue_script('
|
123 |
}
|
124 |
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
-
wp_enqueue_script('google-hosted-jquery');
|
128 |
}
|
129 |
}
|
130 |
|
117 |
*/
|
118 |
public static function add_jquery_validation_libraries() {
|
119 |
|
120 |
+
if ( !wp_script_is('jquery') && !wp_script_is('google-hosted-jquery') ) {
|
121 |
wp_register_script('google-hosted-jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', false);
|
122 |
+
wp_enqueue_script('google-hosted-jquery');
|
123 |
}
|
124 |
|
125 |
+
if ( !wp_script_is('jquery-validation-plugin') && wp_script_is('jquery') )
|
126 |
+
{
|
127 |
+
wp_register_script('jquery-validation-plugin', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js', array('jquery'));
|
128 |
+
}
|
129 |
+
else if ( !wp_script_is('jquery-validation-plugin') && wp_script_is('google-hosted-jquery') )
|
130 |
+
{
|
131 |
+
wp_register_script('jquery-validation-plugin', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js', array('google-hosted-jquery'));
|
132 |
+
}
|
133 |
+
|
134 |
+
wp_enqueue_script('jquery-validation-plugin');
|
135 |
|
|
|
136 |
}
|
137 |
}
|
138 |
|
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.0.
|
7 |
* Author: MailerGroup
|
8 |
* Author URI: https://www.mailerlite.com
|
9 |
* License: GPLv2 or later
|
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.0.5
|
7 |
* Author: MailerGroup
|
8 |
* Author URI: https://www.mailerlite.com
|
9 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mailerlite
|
|
3 |
Donate link: https://www.mailerlite.com/
|
4 |
Tags: mailerlite, newsletter, subscribe, form, webform
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -128,6 +128,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
|
|
128 |
|
129 |
== Changelog ==
|
130 |
|
|
|
|
|
131 |
= 1.0.4 =
|
132 |
* Subscribe button update
|
133 |
= 1.0.3 =
|
@@ -141,6 +143,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
|
|
141 |
|
142 |
== Upgrade Notice ==
|
143 |
|
|
|
|
|
144 |
= 1.0.4 =
|
145 |
* Subscribe button update
|
146 |
= 1.0.3 =
|
3 |
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.0
|
7 |
+
Stable tag: 1.0.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 1.0.5 =
|
132 |
+
* Fix for WP 4.0
|
133 |
= 1.0.4 =
|
134 |
* Subscribe button update
|
135 |
= 1.0.3 =
|
143 |
|
144 |
== Upgrade Notice ==
|
145 |
|
146 |
+
= 1.0.5 =
|
147 |
+
* Fix for WP 4.0
|
148 |
= 1.0.4 =
|
149 |
* Subscribe button update
|
150 |
= 1.0.3 =
|