MailChimp Forms by MailMunch - Version 2.0.2

Version Description

Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0.2

includes/class-mailmunch-api.php CHANGED
@@ -66,7 +66,7 @@
66
  $s = false;
67
  if (count($sites)) {
68
  foreach ($sites as $site) {
69
- if ($site->id == $siteId) {
70
  $s = $site;
71
  break;
72
  }
66
  $s = false;
67
  if (count($sites)) {
68
  foreach ($sites as $site) {
69
+ if (intval($site->id) == intval($siteId)) {
70
  $s = $site;
71
  break;
72
  }
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.1
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.0.2
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
public/class-mailchimp-mailmunch-public.php CHANGED
@@ -52,6 +52,11 @@ class Mailchimp_Mailmunch_Public {
52
  $this->plugin_name = $plugin_name;
53
  $this->version = $version;
54
 
 
 
 
 
 
55
  }
56
 
57
  /**
52
  $this->plugin_name = $plugin_name;
53
  $this->version = $version;
54
 
55
+ add_shortcode('mailmunch-form', array($this, 'shortcode_form'));
56
+ }
57
+
58
+ public function shortcode_form($atts) {
59
+ return "<div class='mailmunch-forms-short-code mailmunch-forms-widget-".$atts['id']."' style='display: none !important;'></div>";
60
  }
61
 
62
  /**
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.1
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.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10