MailChimp for WordPress - Version 1.4.6

Version Description

  • November 27, 2013 =
  • Fixed: Incorrect invalid email address notice showing up every time.
  • Fixed: Incorrect form action url for some servers.
Download this release

Release Info

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

Code changes from version 1.4.5 to 1.4.6

includes/template-functions.php CHANGED
@@ -105,8 +105,24 @@ function mc4wp_get_subscriber_count( $list_ids ) {
105
  * @return string current URL
106
  */
107
  function mc4wp_get_current_url() {
108
- global $wp;
109
- return trailingslashit( home_url( add_query_arg( array(), $wp->request ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
 
112
 
105
  * @return string current URL
106
  */
107
  function mc4wp_get_current_url() {
108
+ $page_url = 'http';
109
+
110
+ if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) { $page_url .= 's'; }
111
+
112
+ $page_url .= '://';
113
+
114
+ if (!isset($_SERVER['REQUEST_URI'])) {
115
+ $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'], 1);
116
+ if (isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'] .='?'.$_SERVER['QUERY_STRING']; }
117
+ }
118
+
119
+ if($_SERVER['SERVER_PORT'] != '80') {
120
+ $page_url .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
121
+ } else {
122
+ $page_url .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
123
+ }
124
+
125
+ return $page_url;
126
  }
127
 
128
 
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.5
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.5");
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.6
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.6");
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, cf7
5
  Requires at least: 3.1
6
  Tested up to: 3.7.1
7
- Stable tag: 1.4.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -192,10 +192,11 @@ Your theme folder can be found by browsing to `/wp-content/themes/your-theme-nam
192
 
193
  == Changelog ==
194
 
195
- = 1.4.5 - November 27, 2013 =
196
- * Fixed: Invalid email address.
 
197
 
198
- = 1.4.4 - November 27, 2013 =
199
  * Fixed: FNAME and LNAME not being guessed from NAME for form sign-ups.
200
  * Added: very small JavaScript fallback for placeholders in older browsers (<= IE9)
201
  * Improved: removed limit from the lists retreived from MailChimp, for users with more than 25 lists.
4
  Tags: mailchimp, widget, form, checkbox, sign-up form, mandrill, buddypress, multisite, bbpress, contact form 7, newsletter, mailinglist, cf7
5
  Requires at least: 3.1
6
  Tested up to: 3.7.1
7
+ Stable tag: 1.4.6
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.6 - November 27, 2013 =
196
+ * Fixed: Incorrect invalid email address notice showing up every time.
197
+ * Fixed: Incorrect form action url for some servers.
198
 
199
+ = 1.4.4 - November 26, 2013 =
200
  * Fixed: FNAME and LNAME not being guessed from NAME for form sign-ups.
201
  * Added: very small JavaScript fallback for placeholders in older browsers (<= IE9)
202
  * Improved: removed limit from the lists retreived from MailChimp, for users with more than 25 lists.