MailChimp List Subscribe Form - Version 1.5.6

Version Description

  • Fixes short array notation which caused a fatal error in older PHP versions.
Download this release

Release Info

Developer MailChimp
Plugin Icon wp plugin MailChimp List Subscribe Form
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.6

Files changed (7) hide show
  1. README.md +0 -225
  2. bin/install-wp-tests.sh +0 -118
  3. lib/mailchimp/mailchimp.php +1 -1
  4. mailchimp.js +0 -38
  5. mailchimp.php +3 -4
  6. readme.txt +7 -4
  7. scrollTo.js +0 -11
README.md DELETED
@@ -1,225 +0,0 @@
1
- === MailChimp List Subscribe Form ===
2
- Contributors: crowdfavorite
3
- Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
- Requires at least: 2.8
5
- Tested up to: 4.0
6
- Stable tag: 1.5
7
-
8
- == Description ==
9
-
10
- Use the MailChimp List Subscribe plugin to quickly add a MailChimp signup form widget to your WordPress 2.8 or higher site.
11
-
12
- After installation, you’ll log in with your API key, select your MailChimp list, choose merge fields and groups, and add the widget to your site. Typically, installation and setup will take about 5-10 minutes, and absolutely everything can be done via the WordPress Setting GUI, with no file editing at all.
13
-
14
- == Installation ==
15
-
16
- This section describes how to install the plugin and get started using it.
17
-
18
- = Version 2.8+ =
19
- 1. Unzip our archive and upload the entire mailchimp directory to your `/wp-content/plugins/ directory`
20
- 2. Activate the plugin through the **Plugins** menu in WordPress
21
- 3. Navigate to **Settings** click **MailChimp Setup**.
22
- 4. Enter your MailChimp API Key and let the plugin verify it.
23
- 5. Select the list where you want to send new MailChimp subscribers.
24
- 6. Optional: turn **MonkeyRewards** on or off.
25
- 7. Optional: Turn **Merge Fields** and **Groups** on or off. Navigate to **Appearance**, and click **Widgets**. Drag the MailChimp Widget into one of your Widget Areas.
26
-
27
-
28
- = Advanced =
29
- If you have a custom coded sidebar or bells and whistles that prevent enabling widgets through the WordPress GUI, complete these steps instead.
30
-
31
- WordPress v2.8 or higher:
32
- ` [mailchimpsf_form] `
33
-
34
- If you are adding it inside a php code block, pop this in:
35
-
36
- ` mailchimpSF_signup_form(); `
37
-
38
- Or, if you are dropping it in between a bunch of HTML, use this:
39
-
40
- `<?php mailchimpSF_signup_form(); ?>`
41
-
42
- Where ever you want it to show up.
43
-
44
- Note: in some environments you will need to install the Exec_PHP plugin to use that method of display. It can be found here: http://wordpress.org/extend/plugins/exec-php/
45
-
46
- == Upgrading ==
47
-
48
- If you are upgrading to version 1.2.1 and you used the widget in your sidebar previously, all you need to do is drag the `MailChimp Widget` back into the sidebar, visit the MailChimp settings page (which will have maintained your prior settings), click the "Update List" button, and you're done!
49
-
50
- == Internationalization (i18n) ==
51
- Currently we have the plugin configured so it can be easily translated and the following languages supported:
52
-
53
- * bg_BG - Bulgarian in Bulgaria (thanks to [SiteGround](http://www.siteground.com/wordpress-hosting.htm) for contributing)
54
- * cs_CZ - Czech in the Czech Republic (thanks to [Peter Kahoun](http://kahi.cz/) for contributing)
55
- * da_DK - Danish in Denmark (thanks to Jan Lund for contributing)
56
- * de_DE - German in Germany (thanks to Michael Jaekel for contributing)
57
- * el_GR - Modern Greek in Greece (thanks to Ιωάννης Δημοφέρλιας (John Dimoferlias) for contributing)
58
- * en_US - English in the U.S.
59
- * es_CL - Spanish in Chile (thanks to Tomás Nader for contributing)
60
- * es_ES - Spanish in Spain (thanks to [Claudia Mansilla](http://cricava.com/) for contributing)
61
- * et_ET - Estonian in Estonia (thanks to [Helen Urbanik](http://www.motomaania.ee/) for contributing)
62
- * fr_FR - French in France (thanks to [Maxime Toulliou](http://www.maximetoulliou.com/) for contributing)
63
- * he_IL - Hebrew in Israel (thanks to [שגיב בית](http://www.sagive.co.il) for contributing)
64
- * hu_HU - Hungarian in Hungary (thanks to Okostobi for contributing)
65
- * it_IT - Italian in Italy (thanks to [Stefan Des](http://www.stefandes.com) for contributing)
66
- * ko_KR - Korean (thanks to 백선기 (SK Baek) for contributing)
67
- * nb_NO - Norwegian (thanks to [Alexander Roterud aka Defrag](http://www.tigerpews.com) for contributing)
68
- * nl_BE - Dutch (thanks to [Filip Stas](http://suddenelfilio.net/) for contributing)
69
- * pt_BR - Portuguese in Brazil (thanks to Maria Manoela Porto for contributing)
70
- * pt_PT - Portuguese in Portugal (thanks to [Tiago Faria](http://xroot.org) for contributing)
71
- * ro_RO - Romanian in Romania (thanks to Alexandru Armin Roșu for contributing)
72
- * ru_RU - Russian in the Russian Federation (thanks to [Илья](http://fatcow.com) for contributing)
73
- * sv_SE - Swedish in Sweden (thanks to [Sebastian Johnsson](http://www.agiley.se/) for contributing)
74
- * tr_TR - Turkish in Turkey (thanks to [Hakan E.](http://kazancexpert.com/) for contributing)
75
-
76
- If your language is not listed above, feel free to create a translation. Here are the basic steps:
77
-
78
- 1. Copy "mailchimp_i18n-en_US.po" to "mailchimp_i18n-LANG_COUNTRY.po" - fill in LANG and COUNTRY with whatever you use for WPLANG in wp-config.php
79
- 2. Grab a transalation editor. [POedit](http://www.poedit.net/) works for us
80
- 3. Translate each line - if you need some context, just open up mailchimp.php and search for the line number or text
81
- 4. [Fork](http://help.github.com/fork-a-repo/) the [repository on github](https://github.com/crowdfavorite/wp-mailchimp)
82
- 5. [Clone](http://help.github.com/remotes/#clone) the _develop_ branch
83
- 6. Add the appropriately named files to the /po/ directory and edit the /readme.txt to include how you'd like to be attributed
84
- 7. Make a [pull request](http://help.github.com/send-pull-requests/)
85
-
86
-
87
- == Frequently Asked Questions ==
88
-
89
- = What in the world is MailChimp? =
90
-
91
- Good question! [MailChimp](http://mailchimp.com/features/all/) is full of useful, powerful email marketing features that are easy to use and even a little fun (that's right---we said fun), whether you're an email marketing expert, or a small business just getting started.
92
-
93
- To learn more, just check out our site: [MailChimp](http://mailchimp.com/features/all/)
94
-
95
-
96
- = Wait a minute, you want me to pay to try this? =
97
-
98
- *Absolutely not!* We welcome you to come signup for a [FREE Trial Account](http://mailchimp.com/signup/) and see if you find it useful.
99
-
100
- = I want this in my language, do you have a translation? =
101
- Maybe! Look in the /po/ directory in our plugin package and see if your language is in there. If it is, great! If it is not, feel from to create one. Here are the basic steps:
102
-
103
- 1. Copy "mailchimp_i18n-en_US.po" to "mailchimp_i18n-LANG_COUNTRY.po" - fill in LANG and COUNTRY with whatever you use for WPLANG in wp-config.php
104
- 2. Grab a transalation editor. [POedit](http://www.poedit.net/) works for us
105
- 3. Translate each line - if you need some context, just open up mailchimp.php and search for the line number or text
106
- 4. [Fork](http://help.github.com/fork-a-repo/) the [repository on github](https://github.com/crowdfavorite/wp-mailchimp)
107
- 5. [Clone](http://help.github.com/remotes/#clone) the _develop_ branch
108
- 6. Add the appropriately named files to the /po/ directory and edit the /readme.txt to include how you'd like to be attributed
109
- 7. Make a [pull request](http://help.github.com/send-pull-requests/)
110
-
111
-
112
- == Screenshots ==
113
-
114
- 1. Entering your MailChimp login info
115
- 2. Selecting your MailChimp list
116
- 3. Configuring your Signup Form display format (optional)
117
- 4. Configuring extra fields on your Signup Form (optional)
118
- 5. An example Signup Form Widget
119
-
120
- == Upgrade Notice ==
121
-
122
- = 1.5 =
123
- Updates the MailChimp API version, adds double/single opt-in toggle.
124
-
125
- = 1.4.2 =
126
- add customized wp_nonces functions for post-back behavior to fix 4.0 callbacks
127
-
128
- = 1.4.1 =
129
- Fix for checkbox weirdness on 3.8
130
-
131
- = 1.4 =
132
- Added Developer Mode "Kitchen Sink" to aid in styling without having to authenticate a MailChimp account.
133
-
134
- = 1.3 =
135
- Now using OAuth flow within plugin for user authentication
136
-
137
- Admin UI refresh
138
-
139
- = 1.2.11 =
140
- Merged pull request from https://github.com/headshift/wp-mailchimp adding additional translation strings.
141
-
142
- = 1.2.10 =
143
- Fixed submission error when apostrophes are present
144
-
145
- = 1.2.8=
146
- Fixes bug where entire phone numbers were only being deposited in the area code portion
147
-
148
- = 1.2.6 =
149
- Fixes major bug with "Settings" link on Plugins screen.
150
-
151
- = 1.2.5 =
152
- Added support for multiple interest groups, field formatting based on type and date picker.
153
-
154
- == Changelog ==
155
-
156
- = 1.5 =
157
- * Upgrade to MailChimp API v3.0
158
- * Remove OAuth2 middle layer and use MailChimp API keys
159
- * Include double/single opt-in toggle.
160
-
161
- = 1.4.1 =
162
- * Update styles to be compatible with upcoming 3.8 wp-admin changes
163
-
164
- = 1.4 =
165
- * Developer Mode "Kitchen Sink" takes over plugin for local development
166
- * Developer Mode has filters of changable content
167
- * Fix bug related to required US phone validation
168
-
169
- = 1.3 =
170
- * Now using OAuth flow for user authentication
171
- * Admin UI refresh
172
-
173
- = 1.2.14 =
174
- * Add link to edit profile within error when duplicate signup occurs
175
-
176
- = 1.2.13 =
177
- * Fixed bug preventing address fields from submitting correctly.
178
-
179
- = 1.2.12 =
180
- * Update spanish language files (es_ES and es_MX)
181
-
182
- = 1.2.9 =
183
- * Fixed bug where multiple checkbox type interest groups were returning an invalid error
184
- * Fixed bug where assets were not enqueueing properly if the plugin directory was not set to 'mailchimp'. Now supports any directory name.
185
-
186
- = 1.2.8 =
187
- * Fixed bug where entire phone numbers were only being deposited in the area code portion
188
-
189
- = 1.2.7 =
190
- * CSS should now always load correctly on the front end
191
- * Adding Hebrew and Romanian language support
192
- * Updating translation contribution instructions
193
- * Tested version is now 3.3.1
194
-
195
- = 1.2.6 =
196
- * Fixed bug with "Settings" link appearing on all plugins (props Jason Lane)
197
- * Resolved issue with unnecessary calls to the MailChimp API during upgrade check
198
- * Resolved PHP warning when there weren't any interest groups
199
-
200
- = 1.2.5 =
201
- * Field formatting based on type
202
- * Support for multiple interest groups (a data upgrade procedure must be run by visiting the WordPress dashboard)
203
- * Added jQuery datepicker option to be used with dates.
204
- * Added a handful of new translations
205
- * Fixing various PHP notices and deprecated functions (props Jeffry Ghazally)
206
-
207
- = 1.2.4 =
208
- * Version bump for proper listing on wordpress.org
209
-
210
- = 1.2.3 =
211
- * Change mailchimpSF_where_am_i() to use plugins_url() in place of WP_PLUGIN_URL to take SSL into account when delivering assets (props John LeBlanc)
212
- * Update MCAPI wrapper to bring back PHP4 support (note: PHP 5.2 to be required starting with WordPress 3.2)
213
-
214
- = 1.2.2 =
215
- * Change MCAPI wrapper to use a more unique class name, v1.3 of the API, and a much lighter client library
216
-
217
- = 1.2.1 =
218
- * Fixed internationalization path bug.
219
- * Fixed instances where i18n functions weren't necessary in admin.
220
- * Added more strings to be translated.
221
-
222
- = 1.2 =
223
- * Recommended Upgrade, please see "Upgrading" section of readme.
224
- * Security and various other improvements
225
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bin/install-wp-tests.sh DELETED
@@ -1,118 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- if [ $# -lt 3 ]; then
4
- echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
5
- exit 1
6
- fi
7
-
8
- DB_NAME=$1
9
- DB_USER=$2
10
- DB_PASS=$3
11
- DB_HOST=${4-localhost}
12
- WP_VERSION=${5-latest}
13
-
14
- WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib}
15
- WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/}
16
-
17
- download() {
18
- if [ `which curl` ]; then
19
- curl -s "$1" > "$2";
20
- elif [ `which wget` ]; then
21
- wget -nv -O "$2" "$1"
22
- fi
23
- }
24
-
25
- if [[ $WP_VERSION =~ [0-9]+\.[0-9]+(\.[0-9]+)? ]]; then
26
- WP_TESTS_TAG="tags/$WP_VERSION"
27
- elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
28
- WP_TESTS_TAG="trunk"
29
- else
30
- # http serves a single offer, whereas https serves multiple. we only want one
31
- download http://api.wordpress.org/core/version-check/1.7/ /tmp/wp-latest.json
32
- grep '[0-9]+\.[0-9]+(\.[0-9]+)?' /tmp/wp-latest.json
33
- LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | sed 's/"version":"//')
34
- if [[ -z "$LATEST_VERSION" ]]; then
35
- echo "Latest WordPress version could not be found"
36
- exit 1
37
- fi
38
- WP_TESTS_TAG="tags/$LATEST_VERSION"
39
- fi
40
-
41
- set -ex
42
-
43
- install_wp() {
44
-
45
- if [ -d $WP_CORE_DIR ]; then
46
- return;
47
- fi
48
-
49
- mkdir -p $WP_CORE_DIR
50
-
51
- if [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
52
- mkdir -p /tmp/wordpress-nightly
53
- download https://wordpress.org/nightly-builds/wordpress-latest.zip /tmp/wordpress-nightly/wordpress-nightly.zip
54
- unzip -q /tmp/wordpress-nightly/wordpress-nightly.zip -d /tmp/wordpress-nightly/
55
- mv /tmp/wordpress-nightly/wordpress/* $WP_CORE_DIR
56
- else
57
- if [ $WP_VERSION == 'latest' ]; then
58
- local ARCHIVE_NAME='latest'
59
- else
60
- local ARCHIVE_NAME="wordpress-$WP_VERSION"
61
- fi
62
- download https://wordpress.org/${ARCHIVE_NAME}.tar.gz /tmp/wordpress.tar.gz
63
- tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
64
- fi
65
-
66
- download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php
67
- }
68
-
69
- install_test_suite() {
70
- # portable in-place argument for both GNU sed and Mac OSX sed
71
- if [[ $(uname -s) == 'Darwin' ]]; then
72
- local ioption='-i .bak'
73
- else
74
- local ioption='-i'
75
- fi
76
-
77
- # set up testing suite if it doesn't yet exist
78
- if [ ! -d $WP_TESTS_DIR ]; then
79
- # set up testing suite
80
- mkdir -p $WP_TESTS_DIR
81
- svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/includes/ $WP_TESTS_DIR/includes
82
- fi
83
-
84
- if [ ! -f wp-tests-config.php ]; then
85
- download https://develop.svn.wordpress.org/${WP_TESTS_TAG}/wp-tests-config-sample.php "$WP_TESTS_DIR"/wp-tests-config.php
86
- sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR':" "$WP_TESTS_DIR"/wp-tests-config.php
87
- sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR"/wp-tests-config.php
88
- sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php
89
- sed $ioption "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR"/wp-tests-config.php
90
- sed $ioption "s|localhost|${DB_HOST}|" "$WP_TESTS_DIR"/wp-tests-config.php
91
- fi
92
-
93
- }
94
-
95
- install_db() {
96
- # parse DB_HOST for port or socket references
97
- local PARTS=(${DB_HOST//\:/ })
98
- local DB_HOSTNAME=${PARTS[0]};
99
- local DB_SOCK_OR_PORT=${PARTS[1]};
100
- local EXTRA=""
101
-
102
- if ! [ -z $DB_HOSTNAME ] ; then
103
- if [ $(echo $DB_SOCK_OR_PORT | grep -e '^[0-9]\{1,\}$') ]; then
104
- EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp"
105
- elif ! [ -z $DB_SOCK_OR_PORT ] ; then
106
- EXTRA=" --socket=$DB_SOCK_OR_PORT"
107
- elif ! [ -z $DB_HOSTNAME ] ; then
108
- EXTRA=" --host=$DB_HOSTNAME --protocol=tcp"
109
- fi
110
- fi
111
-
112
- # create database
113
- mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA
114
- }
115
-
116
- install_wp
117
- install_test_suite
118
- install_db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/mailchimp/mailchimp.php CHANGED
@@ -18,7 +18,7 @@ class MailChimp_API {
18
  return;
19
  }
20
 
21
- public function get($endpoint, $count = 10, $fields = [])
22
  {
23
  $url = $this->api_url . $endpoint;
24
 
18
  return;
19
  }
20
 
21
+ public function get($endpoint, $count = 10, $fields = array())
22
  {
23
  $url = $this->api_url . $endpoint;
24
 
mailchimp.js DELETED
@@ -1,38 +0,0 @@
1
- /* Form submission functions for the MailChimp Widget */
2
- ;(function($){
3
- $(function($) {
4
- // Change our submit type from HTML (default) to JS
5
- $('#mc_submit_type').val('js');
6
-
7
- // Attach our form submitter action
8
- $('#mc_signup_form').ajaxForm({
9
- url: mailchimpSF.ajax_url,
10
- type: 'POST',
11
- dataType: 'text',
12
- beforeSubmit: mc_beforeForm,
13
- success: mc_success
14
- });
15
- });
16
-
17
- function mc_beforeForm(){
18
- // Disable the submit button
19
- $('#mc_signup_submit').attr("disabled","disabled");
20
- }
21
- function mc_success(data){
22
- // Re-enable the submit button
23
- $('#mc_signup_submit').removeAttr("disabled");
24
-
25
- // Put the response in the message div
26
- $('#mc_message').html(data);
27
-
28
- // See if we're successful, if so, wipe the fields
29
- var reg = new RegExp("class='mc_success_msg'", 'i');
30
- if (reg.test(data)){
31
- $('#mc_signup_form').each(function(){
32
- this.reset();
33
- });
34
- $('#mc_submit_type').val('js');
35
- }
36
- $.scrollTo('#mc_signup', {offset: {top: -28}});
37
- }
38
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mailchimp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp
4
  Plugin URI: http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/
5
  Description: The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.
6
- Version: 1.5.4
7
  Author: MailChimp
8
  Author URI: https://mailchimp.com/
9
  */
@@ -25,7 +25,7 @@ Author URI: https://mailchimp.com/
25
  */
26
 
27
  // Version constant for easy CSS refreshes
28
- define('MCSF_VER', '1.5.4');
29
 
30
  // What's our permission (capability) threshold
31
  define('MCSF_CAP_THRESHOLD', 'manage_options');
@@ -59,8 +59,7 @@ function mailchimpSF_plugin_init() {
59
  $locale = apply_filters( 'plugin_locale', get_locale(), $textdomain);
60
  load_textdomain('mailchimp_i18n', MCSF_LANG_DIR.$textdomain.'-'.$locale.'.mo');
61
 
62
- // Check for mc_api_key or sopresto key and continue if neither
63
- mailchimpSF_migrate_sopresto();
64
 
65
  if (get_option('mc_list_id') && get_option('mc_merge_field_migrate') != true && mailchimpSF_get_api() !== false) {
66
  mailchimpSF_update_merge_fields(get_option('mc_list_id'));
3
  Plugin Name: MailChimp
4
  Plugin URI: http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/
5
  Description: The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.
6
+ Version: 1.5.6
7
  Author: MailChimp
8
  Author URI: https://mailchimp.com/
9
  */
25
  */
26
 
27
  // Version constant for easy CSS refreshes
28
+ define('MCSF_VER', '1.5.6');
29
 
30
  // What's our permission (capability) threshold
31
  define('MCSF_CAP_THRESHOLD', 'manage_options');
59
  $locale = apply_filters( 'plugin_locale', get_locale(), $textdomain);
60
  load_textdomain('mailchimp_i18n', MCSF_LANG_DIR.$textdomain.'-'.$locale.'.mo');
61
 
62
+ // Remove Sopresto check. If user does not have API key, make them authenticate.
 
63
 
64
  if (get_option('mc_list_id') && get_option('mc_merge_field_migrate') != true && mailchimpSF_get_api() !== false) {
65
  mailchimpSF_update_merge_fields(get_option('mc_list_id'));
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: MailChimp
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.8
5
  Tested up to: 4.5
6
- Stable tag: 1.5.5
7
 
8
  == Description ==
9
 
@@ -92,8 +92,9 @@ If your language is not listed above, feel free to create a translation. Here ar
92
  5. An example Signup Form Widget
93
 
94
  == Upgrade Notice ==
 
95
  = 1.5.5 =
96
- If you have not upgraded since 1.4.x, you will need to reauthenticate with an API Key.
97
 
98
  = 1.5 =
99
  Updates the MailChimp API version, adds double/single opt-in toggle.
@@ -128,12 +129,14 @@ Fixes major bug with "Settings" link on Plugins screen.
128
  Added support for multiple interest groups, field formatting based on type and date picker.
129
 
130
  == Changelog ==
 
 
131
 
132
  = 1.5.5 =
133
- * Resolve timeout issues.
134
 
135
  = 1.5.4 =
136
- * Make field selection optional in API wrapper.
137
 
138
  = 1.5.3 =
139
  * Fix PHP7 compatibility issue
3
  Tags: mailchimp, email, newsletter, signup, marketing, plugin, widget
4
  Requires at least: 2.8
5
  Tested up to: 4.5
6
+ Stable tag: 1.5.6
7
 
8
  == Description ==
9
 
92
  5. An example Signup Form Widget
93
 
94
  == Upgrade Notice ==
95
+
96
  = 1.5.5 =
97
+ If you are updating from v1.4.x, you will need to re-authorize with an API key.
98
 
99
  = 1.5 =
100
  Updates the MailChimp API version, adds double/single opt-in toggle.
129
  Added support for multiple interest groups, field formatting based on type and date picker.
130
 
131
  == Changelog ==
132
+ = 1.5.6 =
133
+ * Fixes short array notation which caused a fatal error in older PHP versions.
134
 
135
  = 1.5.5 =
136
+ * Fix timeout error on activation.
137
 
138
  = 1.5.4 =
139
+ * Set optional value for API wrapper.
140
 
141
  = 1.5.3 =
142
  * Fix PHP7 compatibility issue
scrollTo.js DELETED
@@ -1,11 +0,0 @@
1
- /**
2
- * jQuery.ScrollTo - Easy element scrolling using jQuery.
3
- * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
4
- * Dual licensed under MIT and GPL.
5
- * Date: 5/25/2009
6
- * @author Ariel Flesler
7
- * @version 1.4.2
8
- *
9
- * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
10
- */
11
- ;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);