WordPress Email Marketing Plugin – WP Email Capture - Version 3.3.3

Version Description

  • Fix bug in header on export (props Ov3rfly).
  • Tested in 4.9
Download this release

Release Info

Developer rhyswynne
Plugin Icon 128x128 WordPress Email Marketing Plugin – WP Email Capture
Version 3.3.3
Comparing to
See all releases

Code changes from version 3.3.2 to 3.3.3

Files changed (3) hide show
  1. inc/exportcsv.php +4 -7
  2. readme.txt +7 -3
  3. wp-email-capture.php +2 -2
inc/exportcsv.php CHANGED
@@ -16,8 +16,10 @@ function wp_email_capture_export() {
16
  $delimeter = ",";
17
  }
18
 
19
- //$csv_output = "\xEF\xBB\xBF"; //UTF-8 BOM;
20
  $csv_output = "";
 
 
 
21
  $csv_output .= __( 'Name', 'wp-email-capture' ). $delimeter .__( 'Email', 'wp-email-capture' );
22
  $csv_output .= "\n";
23
 
@@ -36,12 +38,7 @@ function wp_email_capture_export() {
36
  $filename = apply_filters( 'wpec_change_csv_filename', $file_prefix."_".date( "Y-m-d_H-i", time() ));
37
 
38
  header( "Content-type: application/vnd.ms-excel charset=" . $charset );
39
- header( "Content-type: application/x-msexcel; charset=" . $charset );
40
- //header( "Content-Type: text/html; charset=utf-8");
41
-
42
- header( "Content-disposition: csv" . date( "Y-m-d" ) . ".csv" );
43
-
44
- header( "Content-disposition: filename=".$filename.".csv" );
45
 
46
  print $csv_output;
47
 
16
  $delimeter = ",";
17
  }
18
 
 
19
  $csv_output = "";
20
+ if ( strtoupper( $charset ) == 'UTF-8' ) {
21
+ $csv_output .= "\xEF\xBB\xBF"; //UTF-8 BOM;
22
+ }
23
  $csv_output .= __( 'Name', 'wp-email-capture' ). $delimeter .__( 'Email', 'wp-email-capture' );
24
  $csv_output .= "\n";
25
 
38
  $filename = apply_filters( 'wpec_change_csv_filename', $file_prefix."_".date( "Y-m-d_H-i", time() ));
39
 
40
  header( "Content-type: application/vnd.ms-excel charset=" . $charset );
41
+ header( "Content-disposition: filename=" . $filename . ".csv" );
 
 
 
 
 
42
 
43
  print $csv_output;
44
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WordPress Email Marketing Plugin - WP Email Capture ===
2
  Tags: email marketing, email, affiliates, mailing lists, mailing list, widget ready
3
  Requires at least: 3.0
4
- Tested up to: 4.8
5
- Version: 3.3.2
6
- Stable tag: 3.3.2
7
  Contributors: rhyswynne
8
  Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
9
 
@@ -159,6 +159,10 @@ This plugin does use widgets, so probably yes :)
159
  Wherever you put in %NAME% (spelt exactly like that, uppercase as well), it will be replaced with the name given by the user.
160
 
161
  == Change Log ==
 
 
 
 
162
  = 3.3.2 =
163
  * Make it compatible with 4.8
164
  * Make the "Buy Link" in WP Email Capture include a coupon
1
  === WordPress Email Marketing Plugin - WP Email Capture ===
2
  Tags: email marketing, email, affiliates, mailing lists, mailing list, widget ready
3
  Requires at least: 3.0
4
+ Tested up to: 4.9
5
+ Version: 3.3.3
6
+ Stable tag: 3.3.3
7
  Contributors: rhyswynne
8
  Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
9
 
159
  Wherever you put in %NAME% (spelt exactly like that, uppercase as well), it will be replaced with the name given by the user.
160
 
161
  == Change Log ==
162
+ = 3.3.3 =
163
+ * Fix bug in header on export (props Ov3rfly).
164
+ * Tested in 4.9
165
+
166
  = 3.3.2 =
167
  * Make it compatible with 4.8
168
  * Make the "Buy Link" in WP Email Capture include a coupon
wp-email-capture.php CHANGED
@@ -8,7 +8,7 @@ Plugin URI: https://www.wpemailcapture.com/?utm_source=plugin-link&utm_medium=pl
8
 
9
  Description: Captures email addresses for insertion into software such as <a href="http://wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="http://wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
10
 
11
- Version: 3.3.2
12
 
13
  Author: Winwar Media
14
 
@@ -26,7 +26,7 @@ define( 'WP_EMAIL_CAPTURE_PATH', dirname( __FILE__ ) );
26
  define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
27
  define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members');
28
  define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members');
29
- define( 'WP_EMAIL_CAPTURE_VERSION', '3.3.1' );
30
 
31
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
32
 
8
 
9
  Description: Captures email addresses for insertion into software such as <a href="http://wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="http://wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
10
 
11
+ Version: 3.3.3
12
 
13
  Author: Winwar Media
14
 
26
  define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
27
  define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members');
28
  define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members');
29
+ define( 'WP_EMAIL_CAPTURE_VERSION', '3.3.3' );
30
 
31
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
32