WordPress Email Marketing Plugin – WP Email Capture - Version 3.2

Version Description

  • Correction in the German translation (props Lars Kasper)
  • Added a wp_email_capture_extra_checks action, that will allow people to run checks on the name/email address.
  • Removed some legacy code that was commented out.
  • Fix an encoding issue for new installs, now the tables match the database's encoding.
  • Fixed a bug for new installs that had a "The plugin generated XXX characters of unexpected output during activation.".
Download this release

Release Info

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

Code changes from version 3.1.3 to 3.2

inc/help.php CHANGED
@@ -37,6 +37,7 @@ function wp_email_capture_free_help() {
37
  * @return void
38
  */
39
  function wp_email_capture_setup_help() {
 
40
  /**
41
  * Filter for the settings page URL for WP Email Capture
42
  *
@@ -177,4 +178,4 @@ function wp_email_capture_list_help() {
177
  </table>
178
 
179
  <?php
180
- } add_action( 'wp_email_capture_help_boxes', 'wp_email_capture_list_help', 40 );
37
  * @return void
38
  */
39
  function wp_email_capture_setup_help() {
40
+
41
  /**
42
  * Filter for the settings page URL for WP Email Capture
43
  *
178
  </table>
179
 
180
  <?php
181
+ } add_action( 'wp_email_capture_help_boxes', 'wp_email_capture_list_help', 40 );
inc/img/akismet-image.gif ADDED
Binary file
inc/install.php CHANGED
@@ -9,55 +9,39 @@ function wp_email_capture_install() {
9
 
10
  global $wpdb;
11
 
 
 
12
  global $wp_email_capture_db_version;
13
 
14
  require_once ABSPATH . 'wp-admin/includes/upgrade.php';
15
 
16
  $registered_members_table = WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE;
 
17
 
18
- $create_registered_members_table_sql = "
19
-
20
- CREATE TABLE " . $registered_members_table . " (
21
-
22
- id INT( 255 ) NOT NULL AUTO_INCREMENT ,
23
-
24
- name TINYTEXT NOT NULL ,
25
-
26
- email TEXT NOT NULL ,
27
-
28
- PRIMARY KEY (id)
29
-
30
- );";
31
-
32
- dbDelta( $create_registered_members_table_sql );
33
-
34
-
35
- $temp_members_table_name = WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE;
36
-
37
- $create_temp_members_table_sql = "
38
-
39
- CREATE TABLE " . $temp_members_table_name . " (
40
-
41
  id INT( 255 ) NOT NULL AUTO_INCREMENT ,
42
-
43
  name TINYTEXT NOT NULL ,
44
-
45
  email TEXT NOT NULL ,
 
46
 
47
- confirm_code TEXT NOT NULL,
48
-
49
- date DATETIME NOT NULL,
50
 
51
- PRIMARY KEY (id)
52
-
53
- );";
 
 
 
 
 
54
 
55
- dbDelta( $create_temp_members_table_sql );
56
 
57
- update_option( "wp_email_capture_db_version", $wp_email_capture_db_version );
58
 
59
- $from = get_option( 'admin_email' );
60
- add_option( 'wp_email_capture_from', $from );
61
 
62
  }
63
 
@@ -76,3 +60,5 @@ function wp_email_capture_database_upgdrade() {
76
  }
77
 
78
  }
 
 
9
 
10
  global $wpdb;
11
 
12
+ $charset_collate = $wpdb->get_charset_collate();
13
+
14
  global $wp_email_capture_db_version;
15
 
16
  require_once ABSPATH . 'wp-admin/includes/upgrade.php';
17
 
18
  $registered_members_table = WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE;
19
+ $temp_members_table_name = WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE;
20
 
21
+ $create_registered_members_table_sql =
22
+ "CREATE TABLE {$registered_members_table} (
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  id INT( 255 ) NOT NULL AUTO_INCREMENT ,
 
24
  name TINYTEXT NOT NULL ,
 
25
  email TEXT NOT NULL ,
26
+ UNIQUE KEY (id)) $charset_collate ;";
27
 
28
+ dbDelta( $create_registered_members_table_sql );
 
 
29
 
30
+ $create_temp_members_table_sql =
31
+ "CREATE TABLE {$temp_members_table_name} (
32
+ id INT( 255 ) NOT NULL AUTO_INCREMENT ,
33
+ name TINYTEXT NOT NULL ,
34
+ email TEXT NOT NULL ,
35
+ confirm_code TEXT NOT NULL ,
36
+ date DATETIME NOT NULL ,
37
+ UNIQUE KEY (id)) $charset_collate;";
38
 
39
+ dbDelta( $create_temp_members_table_sql );
40
 
41
+ update_option( "wp_email_capture_db_version", $wp_email_capture_db_version );
42
 
43
+ $from = get_option('admin_email');
44
+ add_option( 'wp_email_capture_from', $from );
45
 
46
  }
47
 
60
  }
61
 
62
  }
63
+
64
+ ?>
inc/options.php CHANGED
@@ -24,6 +24,16 @@ function wp_email_capture_dashboard() {
24
  $extensionstopush = array(
25
  array(
26
 
 
 
 
 
 
 
 
 
 
 
27
  'name' => __('WP Email Capture - Drip Integration', 'WPEC' ),
28
  'description' => __( 'Integrate WP Email Capture with <a href="https://www.wpemailcapture.com/recommends/drip/">Drip</a>'),
29
  'price' => '15',
@@ -32,7 +42,7 @@ function wp_email_capture_dashboard() {
32
  'imageurl' => WP_EMAIL_CAPTURE_URL . '/inc/img/drip-image.png',
33
  'slug' => 'wpemailcapturedripintegration'
34
  )
35
- )
36
 
37
  ?>
38
  <div class="wrap about-wrap">
24
  $extensionstopush = array(
25
  array(
26
 
27
+ 'name' => __('WP Email Capture - Akismet Integration', 'WPEC' ),
28
+ 'description' => __( 'Integrate WP Email Capture with <a href="https://akismet.com/">Akismet</a>'),
29
+ 'price' => '20',
30
+ 'purchaseurl' => 'https://www.wpemailcapture.com/checkout/?edd_action=add_to_cart&download_id=2823',
31
+ 'infourl' => 'https://www.wpemailcapture.com/downloads/wp-email-capture-akismet-integration/',
32
+ 'imageurl' => WP_EMAIL_CAPTURE_URL . '/inc/img/akismet-image.gif',
33
+ 'slug' => 'wpemailcaptureakismetintegration'
34
+ ),
35
+ array(
36
+
37
  'name' => __('WP Email Capture - Drip Integration', 'WPEC' ),
38
  'description' => __( 'Integrate WP Email Capture with <a href="https://www.wpemailcapture.com/recommends/drip/">Drip</a>'),
39
  'price' => '15',
42
  'imageurl' => WP_EMAIL_CAPTURE_URL . '/inc/img/drip-image.png',
43
  'slug' => 'wpemailcapturedripintegration'
44
  )
45
+ );
46
 
47
  ?>
48
  <div class="wrap about-wrap">
inc/process.php CHANGED
@@ -95,6 +95,8 @@ function wp_email_capture_signup() {
95
  $name = wp_email_stripslashes( $name );
96
  $email = wp_email_stripslashes( $email );
97
 
 
 
98
  $referrer = esc_url( $_SERVER['HTTP_REFERER'] );
99
  $ip = esc_attr( $_SERVER['REMOTE_ADDR'] );
100
  $date = date( "Y-m-d H-i" );
95
  $name = wp_email_stripslashes( $name );
96
  $email = wp_email_stripslashes( $email );
97
 
98
+ do_action( 'wp_email_capture_extra_checks', $name, $email );
99
+
100
  $referrer = esc_url( $_SERVER['HTTP_REFERER'] );
101
  $ip = esc_attr( $_SERVER['REMOTE_ADDR'] );
102
  $date = date( "Y-m-d H-i" );
languages/wp-email-capture-de_DE.mo CHANGED
Binary file
languages/wp-email-capture-de_DE.po CHANGED
@@ -13,7 +13,7 @@ msgstr ""
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Generator: Poedit 1.5.5\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
  #: inc/admin-sidebar.php:14
@@ -445,7 +445,7 @@ msgstr "Dies ist eine automatische Nachricht, weil jemand mit der IP-Adresse"
445
 
446
  #: inc/process.php:186
447
  msgid "(possibly you) on"
448
- msgstr "(vielleicht sie) am"
449
 
450
  #: inc/process.php:186
451
  msgid "filled out the form on the following page"
@@ -479,7 +479,6 @@ msgstr "Anmeldungen"
479
  msgid "Delete "
480
  msgstr "Entferne "
481
 
482
- #. #-#-#-#-# plugin.pot (WP Email Capture 2.10) #-#-#-#-#
483
  #. Plugin Name of the plugin/theme
484
  #: inc/widget.php:6
485
  msgid "WP Email Capture"
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Generator: Poedit 1.7.4\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
  #: inc/admin-sidebar.php:14
445
 
446
  #: inc/process.php:186
447
  msgid "(possibly you) on"
448
+ msgstr "(vielleicht Sie) am"
449
 
450
  #: inc/process.php:186
451
  msgid "filled out the form on the following page"
479
  msgid "Delete "
480
  msgstr "Entferne "
481
 
 
482
  #. Plugin Name of the plugin/theme
483
  #: inc/widget.php:6
484
  msgid "WP Email Capture"
readme.md CHANGED
@@ -4,11 +4,11 @@ Tags: email, marketing, capture, form, affiliates, mailing lists, email marketin
4
 
5
  Requires at least: 3.0
6
 
7
- Tested up to: 4.5
8
 
9
- Version: 3.1.3
10
 
11
- Stable tag: 3.1.3
12
 
13
  Contributors: rhyswynne
14
 
4
 
5
  Requires at least: 3.0
6
 
7
+ Tested up to: 4.7
8
 
9
+ Version: 3.2
10
 
11
+ Stable tag: 3.2
12
 
13
  Contributors: rhyswynne
14
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WP Email Capture ===
2
  Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
3
  Requires at least: 3.0
4
- Tested up to: 4.6
5
- Version: 3.1.3
6
- Stable tag: 3.1.3
7
  Contributors: rhyswynne
8
  Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
9
 
@@ -159,6 +159,17 @@ Please report any bugs, support and suggestions to the [WP Email Capture Support
159
  To donate to this plugin, please visit the [WP Email Capture Donations Page](http://wpemailcapture.com/premium/?utm_source=donate&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
160
 
161
  == Change Log ==
 
 
 
 
 
 
 
 
 
 
 
162
  = 3.1.3 =
163
  * Added wp_email_capture_complete_before_redirect action. Allowing data to be manipulated before the redirect.
164
  * Added Extensions area of dashboard.
1
  === WP Email Capture ===
2
  Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
3
  Requires at least: 3.0
4
+ Tested up to: 4.7
5
+ Version: 3.2
6
+ Stable tag: 3.2
7
  Contributors: rhyswynne
8
  Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
9
 
159
  To donate to this plugin, please visit the [WP Email Capture Donations Page](http://wpemailcapture.com/premium/?utm_source=donate&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
160
 
161
  == Change Log ==
162
+ = 3.2 =
163
+ * Correction in the German translation (props [Lars Kasper](http://larskasper.de/))
164
+ * Added a wp_email_capture_extra_checks action, that will allow people to run checks on the name/email address.
165
+ * Removed some legacy code that was commented out.
166
+ * Fix an encoding issue for new installs, now the tables match the database's encoding.
167
+ * Fixed a bug for new installs that had a "The plugin generated XXX characters of unexpected output during activation.".
168
+
169
+ = 3.1.4 =
170
+ * Fixed a bug that caused an "Unexpected Output" on some database setups.
171
+ * Used UNIQUE KEY rather than PRIMARY KEY, so activation and deactivation doesn't cause database errors.
172
+
173
  = 3.1.3 =
174
  * Added wp_email_capture_complete_before_redirect action. Allowing data to be manipulated before the redirect.
175
  * Added Extensions area of dashboard.
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.1.3
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.1.2' );
30
 
31
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
32
 
@@ -53,14 +53,7 @@ function wp_email_capture_plugins_loaded() {
53
  add_action( 'admin_notices', 'wp_email_capture_admin_upsell' );
54
  add_action( 'admin_init', 'wp_email_capture_nag_ignore' );
55
  add_action( 'widgets_init', 'wp_email_capture_widget_init', 10);
56
-
57
- /* if ( 1 == get_option( 'wpec_set_tracking' ) ) {
58
-
59
- add_action( 'plugins_loaded', 'wpec_start_tracking', 15 );
60
- add_action( 'admin_init', 'wpec_do_tracking');
61
-
62
- } */
63
-
64
  // Front End Functions
65
  add_action( 'init', 'wp_email_capture_process' );
66
  add_action( 'wp_email_capture_signup_actions', 'wp_email_capture_signup', 10 );
@@ -76,4 +69,4 @@ function wp_email_capture_plugins_loaded() {
76
 
77
  // Activation functionality
78
  add_action( 'plugins_loaded', 'wp_email_capture_plugins_loaded', 10 );
79
- register_activation_hook( __FILE__, 'wp_email_capture_install' );
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.2
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.2' );
30
 
31
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
32
 
53
  add_action( 'admin_notices', 'wp_email_capture_admin_upsell' );
54
  add_action( 'admin_init', 'wp_email_capture_nag_ignore' );
55
  add_action( 'widgets_init', 'wp_email_capture_widget_init', 10);
56
+
 
 
 
 
 
 
 
57
  // Front End Functions
58
  add_action( 'init', 'wp_email_capture_process' );
59
  add_action( 'wp_email_capture_signup_actions', 'wp_email_capture_signup', 10 );
69
 
70
  // Activation functionality
71
  add_action( 'plugins_loaded', 'wp_email_capture_plugins_loaded', 10 );
72
+ register_activation_hook( __FILE__, 'wp_email_capture_install' );