MailChimp Forms by MailMunch - Version 2.1.0

Version Description

Download this release

Release Info

Developer mailmunch
Plugin Icon 128x128 MailChimp Forms by MailMunch
Version 2.1.0
Comparing to
See all releases

Code changes from version 2.0.9 to 2.1.0

admin/js/mailchimp-mailmunch-admin.js CHANGED
@@ -37,21 +37,24 @@
37
  return false;
38
  });
39
 
40
- window.addEventListener("message", function(event) {
41
- if (typeof(event.data) != 'undefined') {
42
- var access_token = '';
43
- if (typeof(event.data) == 'string') {
44
- access_token = event.data;
45
- } else {
46
- access_token = event.data.access_token;
47
- }
48
- $("#connect-mailchimp").hide();
49
- $("#loader").show();
50
- var form = $('#mailchimp-access-token-form');
51
- form.find('input[name=access_token]').val(access_token);
52
- form.submit();
53
- }
54
- }, false);
 
 
 
55
 
56
  $('.delete-widget').click(function() {
57
  if (!confirm('Are you sure you want to delete this optin form?')) return false;
37
  return false;
38
  });
39
 
40
+ window.addEventListener("message", function(event) {
41
+ if (typeof(event.origin) == 'undefined' || event.origin.indexOf('mailmunch') == -1) return;
42
+ if (typeof(event.data) != 'undefined') {
43
+ var access_token = '';
44
+ if (typeof(event.data) == 'string') {
45
+ access_token = event.data;
46
+ } else {
47
+ access_token = event.data.access_token;
48
+ }
49
+ if (access_token) {
50
+ $("#connect-mailchimp").hide();
51
+ $("#loader").show();
52
+ var form = $('#mailchimp-access-token-form');
53
+ form.find('input[name=access_token]').val(access_token);
54
+ form.submit();
55
+ }
56
+ }
57
+ }, false);
58
 
59
  $('.delete-widget').click(function() {
60
  if (!confirm('Are you sure you want to delete this optin form?')) return false;
includes/class-mailchimp-mailmunch.php CHANGED
@@ -18,7 +18,7 @@ define( 'MAILCHIMP_MAILMUNCH_URL', "http://wordpress.mailmunch.co" );
18
  define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
19
  define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
20
  define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
21
- define( 'MAILCHIMP_MAILMUNCH_VERSION', '2.0.9' );
22
 
23
  /**
24
  * The core plugin class.
18
  define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
19
  define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
20
  define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
21
+ define( 'MAILCHIMP_MAILMUNCH_VERSION', '2.1.0' );
22
 
23
  /**
24
  * The core plugin class.
mailchimp-mailmunch.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: MailChimp Forms by MailMunch
17
  * Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
18
  * Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
19
- * Version: 2.0.9
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
16
  * Plugin Name: MailChimp Forms by MailMunch
17
  * Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
18
  * Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
19
+ * Version: 2.1.0
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: mailchimp,mailchimp form,mailchimp newsletter,mailchimp plugin,newsletter,
4
 
5
  Requires at least: 3.0.1
6
  Tested up to: 4.2
7
- Stable tag: 2.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
 
5
  Requires at least: 3.0.1
6
  Tested up to: 4.2
7
+ Stable tag: 2.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10