MailChimp for WordPress - Version 1.4.3

Version Description

  • November 19, 2013 =
  • Improved: added filter hook mc4wp_lists to customize lists before sending request to MailChimp.
  • Improved: added empty index.php files to directories to prevent directory listings
Download this release

Release Info

Developer DvanKooten
Plugin Icon 128x128 MailChimp for WordPress
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

assets/css/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
assets/img/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
assets/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
assets/js/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
includes/MC4WP_Lite_Checkbox.php CHANGED
@@ -374,6 +374,7 @@ class MC4WP_Lite_Checkbox
374
 
375
  $merge_vars = apply_filters('mc4wp_merge_vars', $merge_vars, '');
376
  $email_type = apply_filters('mc4wp_email_type', 'html');
 
377
 
378
  foreach($lists as $list) {
379
  $result = $api->subscribe($list, $email, $merge_vars, $email_type, $opts['double_optin']);
374
 
375
  $merge_vars = apply_filters('mc4wp_merge_vars', $merge_vars, '');
376
  $email_type = apply_filters('mc4wp_email_type', 'html');
377
+ $lists = apply_filters('mc4wp_lists', $lists, $merge_vars);
378
 
379
  foreach($lists as $list) {
380
  $result = $api->subscribe($list, $email, $merge_vars, $email_type, $opts['double_optin']);
includes/MC4WP_Lite_Form.php CHANGED
@@ -279,6 +279,8 @@ class MC4WP_Lite_Form {
279
 
280
  $merge_vars = apply_filters('mc4wp_merge_vars', $merge_vars);
281
  $email_type = apply_filters('mc4wp_email_type', 'html');
 
 
282
 
283
  foreach ( $lists as $list ) {
284
  $result = $api->subscribe( $list, $email, $merge_vars, $email_type, $opts['double_optin'] );
279
 
280
  $merge_vars = apply_filters('mc4wp_merge_vars', $merge_vars);
281
  $email_type = apply_filters('mc4wp_email_type', 'html');
282
+ $lists = apply_filters('mc4wp_lists', $lists, $merge_vars);
283
+
284
 
285
  foreach ( $lists as $list ) {
286
  $result = $api->subscribe( $list, $email, $merge_vars, $email_type, $opts['double_optin'] );
includes/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
includes/views/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
includes/views/parts/admin-need-support.php CHANGED
@@ -11,25 +11,12 @@
11
  <li><a target="_blank" href="http://twitter.com/?status=Showing%20my%20appreciation%20to%20%40DannyvanKooten%20for%20his%20WordPress%20plugin%3A%20MailChimp%20for%20WP%20%20-%20check%20it%20out!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Fmailchimp-for-wp%2F">Tweet about MailChimp for WP</a></li>
12
  <li>Review the plugin on your blog and link to <a href="http://dannyvankooten.com/mailchimp-for-wordpress/">the plugin page</a></li>
13
  <li><a target="_blank" href="http://wordpress.org/plugins/mailchimp-for-wp/">Vote "works" on the WordPress.org plugin page</a></li>
14
- <li><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FCodeToTheChase&amp;width=125&amp;layout=button_count&amp;action=recommend&amp;show_faces=false&amp;share=false&amp;height=21&amp;appId=440938895977614" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:125px; height:21px;" allowTransparency="true"></iframe></li>
15
  </ul>
16
- <p>Thank you for supporting MailChimp for WordPress, much appreciated!</p>
17
  </div>
18
-
19
-
20
  <div class="mc4wp-box">
21
- <h3>Other plugins you might like</h3>
22
- <ul class="ul-square">
23
- <li>
24
- <strong>Scroll Triggered Boxes</strong><br />
25
- Boxes that fade in when visitors reach certain points on your pages, a perfect spot to ask them to subscribe.<br />
26
- <a href="http://wordpress.org/plugins/scroll-triggered-boxes/">Download from WordPress.org</a>
27
- </li>
28
- <li>
29
- <strong>WYSIWYG Widgets</strong><br />
30
- Lets you create rich formatted Widget Blocks which you can easily display in any of your widget areas<br />
31
- <a href="http://wordpress.org/plugins/wysiwyg-widgets/">Download from WordPress.org</a>
32
- </li>
33
- </ul>
34
-
35
  </div>
11
  <li><a target="_blank" href="http://twitter.com/?status=Showing%20my%20appreciation%20to%20%40DannyvanKooten%20for%20his%20WordPress%20plugin%3A%20MailChimp%20for%20WP%20%20-%20check%20it%20out!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Fmailchimp-for-wp%2F">Tweet about MailChimp for WP</a></li>
12
  <li>Review the plugin on your blog and link to <a href="http://dannyvankooten.com/mailchimp-for-wordpress/">the plugin page</a></li>
13
  <li><a target="_blank" href="http://wordpress.org/plugins/mailchimp-for-wp/">Vote "works" on the WordPress.org plugin page</a></li>
 
14
  </ul>
 
15
  </div>
 
 
16
  <div class="mc4wp-box">
17
+ <h3 class="rfbp-title">About the developer</h3>
18
+ <p>My name is <a href="http://dannyvankooten.com/">Danny van Kooten</a>. I develop WordPress plugins which help you build your websites. I love simplicity, happy customers and clean code.</p>
19
+ <p>Take a look at my other <a href="http://dannyvankooten.com/wordpress-plugins/">plugins for WordPress</a> or <em>like</em> my Facebook page to stay updated.</p>
20
+ <p><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FCodeToTheChase&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=false&amp;appId=225994527565061" scrolling="no" frameborder="0" style="border:none; width: 100%; overflow:hidden; height: 80px;" allowTransparency="true"></iframe></p>
21
+ <p>You can also follow me on twitter <a href="http://twitter.com/dannyvankooten">here</a>.</p>
 
 
 
 
 
 
 
 
 
22
  </div>
includes/views/parts/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // empty index.php to prevent directory listing
mailchimp-for-wp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp for WordPress Lite
4
  Plugin URI: http://dannyvankooten.com/mailchimp-for-wordpress/
5
  Description: Lite version of MailChimp for WordPress. Add various sign-up methods to your website. Show sign-up forms in your posts, pages or widgets. Add sign-up checkboxes to various forms, like your comment or contact forms. Premium features include multiple and better forms, easier styling, detailed statistics and much more: <a href="http://dannyvankooten.com/mailchimp-for-wordpress/">Upgrade now</a>
6
- Version: 1.4.2
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvanKooten.com
9
  License: GPL v3
@@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
27
 
28
  defined( 'ABSPATH' ) OR exit;
29
 
30
- define("MC4WP_LITE_VERSION", "1.4.2");
31
  define("MC4WP_LITE_PLUGIN_DIR", plugin_dir_path(__FILE__));
32
 
33
  if(!function_exists('is_plugin_active')) {
3
  Plugin Name: MailChimp for WordPress Lite
4
  Plugin URI: http://dannyvankooten.com/mailchimp-for-wordpress/
5
  Description: Lite version of MailChimp for WordPress. Add various sign-up methods to your website. Show sign-up forms in your posts, pages or widgets. Add sign-up checkboxes to various forms, like your comment or contact forms. Premium features include multiple and better forms, easier styling, detailed statistics and much more: <a href="http://dannyvankooten.com/mailchimp-for-wordpress/">Upgrade now</a>
6
+ Version: 1.4.3
7
  Author: Danny van Kooten
8
  Author URI: http://dannyvanKooten.com
9
  License: GPL v3
27
 
28
  defined( 'ABSPATH' ) OR exit;
29
 
30
+ define("MC4WP_LITE_VERSION", "1.4.3");
31
  define("MC4WP_LITE_PLUGIN_DIR", plugin_dir_path(__FILE__));
32
 
33
  if(!function_exists('is_plugin_active')) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://dannyvankooten.com/donate/
4
  Tags: mailchimp, widget, form, checkbox, sign-up form, mandrill, buddypress, multisite, bbpress, contact form 7, newsletter, mailinglist
5
  Requires at least: 3.1
6
  Tested up to: 3.7.1
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -192,6 +192,10 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
192
 
193
  == Changelog ==
194
 
 
 
 
 
195
  = 1.4.2 - November 11, 2013 =
196
  * Improved: Minor textual improvements in settings pages
197
  * Improved: Security improvement, plugin file can't be access directly anymore
4
  Tags: mailchimp, widget, form, checkbox, sign-up form, mandrill, buddypress, multisite, bbpress, contact form 7, newsletter, mailinglist
5
  Requires at least: 3.1
6
  Tested up to: 3.7.1
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
192
 
193
  == Changelog ==
194
 
195
+ = 1.4.3 - November 19, 2013 =
196
+ * Improved: added filter hook `mc4wp_lists` to customize lists before sending request to MailChimp.
197
+ * Improved: added empty `index.php` files to directories to prevent directory listings
198
+
199
  = 1.4.2 - November 11, 2013 =
200
  * Improved: Minor textual improvements in settings pages
201
  * Improved: Security improvement, plugin file can't be access directly anymore