Version Description
Download this release
Release Info
Developer | mailmunch |
Plugin | MailChimp Forms by MailMunch |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- admin/class-mailchimp-mailmunch-admin.php +2 -2
- includes/drewm_mailchimp.php +1 -4
- mailchimp-mailmunch.php +1 -1
- readme.txt +1 -1
admin/class-mailchimp-mailmunch-admin.php
CHANGED
@@ -203,7 +203,7 @@ class Mailchimp_Mailmunch_Admin {
|
|
203 |
}
|
204 |
|
205 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/drewm_mailchimp.php';
|
206 |
-
$mailchimpApi = new
|
207 |
$lists = $mailchimpApi->call('lists/list');
|
208 |
require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-integrate.php');
|
209 |
break;
|
@@ -213,7 +213,7 @@ class Mailchimp_Mailmunch_Admin {
|
|
213 |
update_option($this->mailmunch_api->getPrefix(). 'mailchimp_list_id', $_POST['list_id']);
|
214 |
|
215 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/drewm_mailchimp.php';
|
216 |
-
$mailchimpApi = new
|
217 |
$lists = $mailchimpApi->call('lists/list');
|
218 |
$listName = '';
|
219 |
if ($lists['total'] > 0) {
|
203 |
}
|
204 |
|
205 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/drewm_mailchimp.php';
|
206 |
+
$mailchimpApi = new DrewmMailChimp(get_option($this->mailmunch_api->getPrefix(). 'mailchimp_access_token'));
|
207 |
$lists = $mailchimpApi->call('lists/list');
|
208 |
require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-integrate.php');
|
209 |
break;
|
213 |
update_option($this->mailmunch_api->getPrefix(). 'mailchimp_list_id', $_POST['list_id']);
|
214 |
|
215 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/drewm_mailchimp.php';
|
216 |
+
$mailchimpApi = new DrewmMailChimp(get_option($this->mailmunch_api->getPrefix(). 'mailchimp_access_token'));
|
217 |
$lists = $mailchimpApi->call('lists/list');
|
218 |
$listName = '';
|
219 |
if ($lists['total'] > 0) {
|
includes/drewm_mailchimp.php
CHANGED
@@ -1,7 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
namespace Drewm;
|
4 |
-
|
5 |
/**
|
6 |
* Super-simple, minimum abstraction MailChimp API v2 wrapper
|
7 |
*
|
@@ -15,7 +12,7 @@ namespace Drewm;
|
|
15 |
* @author Drew McLellan <drew.mclellan@gmail.com>
|
16 |
* @version 1.1.1
|
17 |
*/
|
18 |
-
class
|
19 |
{
|
20 |
private $api_key;
|
21 |
private $api_endpoint = 'https://<dc>.api.mailchimp.com/2.0';
|
1 |
<?php
|
|
|
|
|
|
|
2 |
/**
|
3 |
* Super-simple, minimum abstraction MailChimp API v2 wrapper
|
4 |
*
|
12 |
* @author Drew McLellan <drew.mclellan@gmail.com>
|
13 |
* @version 1.1.1
|
14 |
*/
|
15 |
+
class DrewmMailChimp
|
16 |
{
|
17 |
private $api_key;
|
18 |
private $api_endpoint = 'https://<dc>.api.mailchimp.com/2.0';
|
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.
|
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.3
|
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.
|
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.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|