Version Description
- Tested to 5.5.
Download this release
Release Info
Developer | rhyswynne |
Plugin | WordPress Email Marketing Plugin – WP Email Capture |
Version | 3.8.2 |
Comparing to | |
See all releases |
Code changes from version 3.8.1 to 3.8.2
- inc/process.php +11 -56
- readme.md +1 -1
- readme.txt +9 -6
- wp-email-capture.php +2 -2
inc/process.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Wrapper function after the user submits an email address.
|
6 |
*
|
7 |
* Runs two actions, that can be overwritten if need be.
|
8 |
-
*
|
9 |
* @return void
|
10 |
*/
|
11 |
function wp_email_capture_process() {
|
@@ -13,13 +13,13 @@ function wp_email_capture_process() {
|
|
13 |
do_action( 'wp_email_capture_set_wp_email_capture_email_settings' );
|
14 |
|
15 |
if ( isset( $_REQUEST['wp_capture_action'] ) ) {
|
16 |
-
|
17 |
do_action( 'wp_email_capture_signup_actions' );
|
18 |
-
|
19 |
}
|
20 |
|
21 |
if ( isset( $_GET['wp_email_confirm'] ) || isset( $_REQUEST['wp_email_confirm'] ) ) {
|
22 |
-
|
23 |
do_action( 'wp_email_capture_confirm_actions' );
|
24 |
|
25 |
//wp_capture_email_confirm();
|
@@ -48,9 +48,9 @@ function wp_email_capture_double_check_everything($name, $email) {
|
|
48 |
|
49 |
|
50 |
/**
|
51 |
-
* Get the email submission form entry, validates it, adds it to the tempoaray database,
|
52 |
* and redirects user to the "Please check your email" page.
|
53 |
-
*
|
54 |
* @return void
|
55 |
*/
|
56 |
function wp_email_capture_signup() {
|
@@ -67,7 +67,7 @@ function wp_email_capture_signup() {
|
|
67 |
if ( strpos( $starturl, "?" ) === false ) { $extrastring = "?"; } else { $extrastring = "&"; }
|
68 |
|
69 |
if ( get_option( "wp_email_capture_name_required" ) == 1 && $name == "" ) {
|
70 |
-
|
71 |
$error = urlencode( __( 'Please Provide A Name', 'wp-email-capture' ) );
|
72 |
$url = $starturl . $extrastring . "wp_email_capture_error=" . $error;
|
73 |
wp_redirect( $url );
|
@@ -170,7 +170,7 @@ function wp_email_capture_signup() {
|
|
170 |
|
171 |
$fromname = "";
|
172 |
$fromname = get_option( 'wp_email_capture_from_name' );
|
173 |
-
|
174 |
if ( $from == "" ) {
|
175 |
$fromname = get_option( 'blogname' );
|
176 |
}
|
@@ -179,7 +179,7 @@ function wp_email_capture_signup() {
|
|
179 |
|
180 |
$header = "MIME-Version: 1.0\n" . "From: " . $fromname . " <" . $from . ">\n";
|
181 |
$header .= "Content-Type: ". $contenttype . "; charset=\"" . get_option( 'blog_charset' ) . "\"\n";
|
182 |
-
|
183 |
// Your message
|
184 |
$splitstring = ( 1 == get_option( 'wp_email_capture_send_email_html' ) ) ? "<br/>" : "\n";
|
185 |
$htmlurl = ( 1 == get_option( 'wp_email_capture_send_email_html' ) ) ? '<p><a href="' . $siteurl .'?wp_email_confirm=1&wp_email_capture_passkey=' . $confirm_code . '">Click Here to Subscribe!</a><br/></p>' : $siteurl ."?wp_email_confirm=1&wp_email_capture_passkey=" . $confirm_code;
|
@@ -280,7 +280,7 @@ function wp_capture_email_confirm() {
|
|
280 |
$add_to_registered_members_table = $wpdb->insert( WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE, array( 'name' => $name, 'email' => $email ), array( '%s', '%s' ) );
|
281 |
|
282 |
// if successfully moved data from table"temp_members_db" to table "registered_members" displays message "Your account has been activated" and don't forget to delete confirmation code from table "temp_members_db"
|
283 |
-
|
284 |
$delete_from_temp_members_sql = "DELETE FROM ". WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE . " WHERE confirm_code = '%s'";
|
285 |
|
286 |
$delete_from_temp_members = $wpdb->query( $wpdb->prepare( $delete_from_temp_members_sql, $passkey ) );
|
@@ -294,7 +294,7 @@ function wp_capture_email_confirm() {
|
|
294 |
|
295 |
$emaildataarray = array(
|
296 |
'name' => $name,
|
297 |
-
'email' => $email
|
298 |
);
|
299 |
|
300 |
do_action( 'wp_email_capture_complete_before_redirect', $emaildataarray );
|
@@ -342,50 +342,5 @@ function wp_email_capture_send_email_default( $to, $subject, $message, $header )
|
|
342 |
|
343 |
}
|
344 |
|
345 |
-
// CLEAN THIS UP
|
346 |
-
// @todo CLEAN UP
|
347 |
-
/* if ( !is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' ) ) {
|
348 |
-
require_once ABSPATH . WPINC . '/class-phpmailer.php';
|
349 |
-
require_once ABSPATH . WPINC . '/class-smtp.php';
|
350 |
-
$phpmailer = new PHPMailer( true );
|
351 |
-
} */
|
352 |
-
|
353 |
-
/* DEPRECATED 3.3 */
|
354 |
-
// Set SMTPDebug to true
|
355 |
-
/* $phpmailer->SMTPDebug = false;
|
356 |
-
|
357 |
-
echo "<br/><br/>To: " . $to;
|
358 |
-
echo "<br/>Subject " . $subject;
|
359 |
-
echo "<br/>Message " . $message;
|
360 |
-
echo "<br/>Header " . $header;
|
361 |
-
|
362 |
-
//$sendmail = wp_mail( $to, $subject, $message );
|
363 |
-
|
364 |
-
if ( $sendmail ) { $addedfield = "Email Sent!"; } else { $addedfield = "Email Not Sent"; }
|
365 |
-
|
366 |
-
// Start output buffering to grab smtp debugging output
|
367 |
-
/* ob_start();
|
368 |
-
add_filter( 'wp_mail_content_type', 'set_html_mail_content_type' );
|
369 |
-
// Send the test mail
|
370 |
-
//$result = wp_mail( $to, $subject, $message, $header );
|
371 |
-
remove_filter( 'wp_mail_content_type', 'set_html_mail_content_type' );
|
372 |
-
// Grab the smtp debugging output
|
373 |
-
$smtp_debug = ob_get_clean();
|
374 |
-
|
375 |
-
// Output the response
|
376 |
-
?>
|
377 |
-
<div id="message" class="updated fade"><p><strong><?php _e( 'Test Message Sent', 'amgsessmtp' ); ?></strong></p>
|
378 |
-
<p><?php _e( 'The result was:', 'amgsessmtp' ); ?></p>
|
379 |
-
<pre><?php var_dump( $sendmail ); ?></pre>
|
380 |
-
<p><?php _e( 'The full debugging output is shown below:', 'amgsessmtp' ); ?></p>
|
381 |
-
<pre><?php var_dump( $phpmailer ); ?></pre>
|
382 |
-
<p><?php _e( 'The SMTP debugging output is shown below:', 'amgsessmtp' ); ?></p>
|
383 |
-
<pre><?php echo $smtp_debug ?></pre>
|
384 |
-
</div>
|
385 |
-
<?php
|
386 |
-
|
387 |
-
wp_die( "Sendmail is: " . $sendmail . "<br/>
|
388 |
-
Disableheaders is: " . $disableheaders); */
|
389 |
-
|
390 |
return $sendmail;
|
391 |
}
|
5 |
* Wrapper function after the user submits an email address.
|
6 |
*
|
7 |
* Runs two actions, that can be overwritten if need be.
|
8 |
+
*
|
9 |
* @return void
|
10 |
*/
|
11 |
function wp_email_capture_process() {
|
13 |
do_action( 'wp_email_capture_set_wp_email_capture_email_settings' );
|
14 |
|
15 |
if ( isset( $_REQUEST['wp_capture_action'] ) ) {
|
16 |
+
|
17 |
do_action( 'wp_email_capture_signup_actions' );
|
18 |
+
|
19 |
}
|
20 |
|
21 |
if ( isset( $_GET['wp_email_confirm'] ) || isset( $_REQUEST['wp_email_confirm'] ) ) {
|
22 |
+
|
23 |
do_action( 'wp_email_capture_confirm_actions' );
|
24 |
|
25 |
//wp_capture_email_confirm();
|
48 |
|
49 |
|
50 |
/**
|
51 |
+
* Get the email submission form entry, validates it, adds it to the tempoaray database,
|
52 |
* and redirects user to the "Please check your email" page.
|
53 |
+
*
|
54 |
* @return void
|
55 |
*/
|
56 |
function wp_email_capture_signup() {
|
67 |
if ( strpos( $starturl, "?" ) === false ) { $extrastring = "?"; } else { $extrastring = "&"; }
|
68 |
|
69 |
if ( get_option( "wp_email_capture_name_required" ) == 1 && $name == "" ) {
|
70 |
+
|
71 |
$error = urlencode( __( 'Please Provide A Name', 'wp-email-capture' ) );
|
72 |
$url = $starturl . $extrastring . "wp_email_capture_error=" . $error;
|
73 |
wp_redirect( $url );
|
170 |
|
171 |
$fromname = "";
|
172 |
$fromname = get_option( 'wp_email_capture_from_name' );
|
173 |
+
|
174 |
if ( $from == "" ) {
|
175 |
$fromname = get_option( 'blogname' );
|
176 |
}
|
179 |
|
180 |
$header = "MIME-Version: 1.0\n" . "From: " . $fromname . " <" . $from . ">\n";
|
181 |
$header .= "Content-Type: ". $contenttype . "; charset=\"" . get_option( 'blog_charset' ) . "\"\n";
|
182 |
+
|
183 |
// Your message
|
184 |
$splitstring = ( 1 == get_option( 'wp_email_capture_send_email_html' ) ) ? "<br/>" : "\n";
|
185 |
$htmlurl = ( 1 == get_option( 'wp_email_capture_send_email_html' ) ) ? '<p><a href="' . $siteurl .'?wp_email_confirm=1&wp_email_capture_passkey=' . $confirm_code . '">Click Here to Subscribe!</a><br/></p>' : $siteurl ."?wp_email_confirm=1&wp_email_capture_passkey=" . $confirm_code;
|
280 |
$add_to_registered_members_table = $wpdb->insert( WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE, array( 'name' => $name, 'email' => $email ), array( '%s', '%s' ) );
|
281 |
|
282 |
// if successfully moved data from table"temp_members_db" to table "registered_members" displays message "Your account has been activated" and don't forget to delete confirmation code from table "temp_members_db"
|
283 |
+
|
284 |
$delete_from_temp_members_sql = "DELETE FROM ". WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE . " WHERE confirm_code = '%s'";
|
285 |
|
286 |
$delete_from_temp_members = $wpdb->query( $wpdb->prepare( $delete_from_temp_members_sql, $passkey ) );
|
294 |
|
295 |
$emaildataarray = array(
|
296 |
'name' => $name,
|
297 |
+
'email' => $email
|
298 |
);
|
299 |
|
300 |
do_action( 'wp_email_capture_complete_before_redirect', $emaildataarray );
|
342 |
|
343 |
}
|
344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
return $sendmail;
|
346 |
}
|
readme.md
CHANGED
@@ -4,7 +4,7 @@ Tags: email, marketing, capture, form, affiliates, mailing lists, email marketin
|
|
4 |
|
5 |
Requires at least: 3.0
|
6 |
|
7 |
-
Tested up to:
|
8 |
|
9 |
Version: 3.5.3
|
10 |
|
4 |
|
5 |
Requires at least: 3.0
|
6 |
|
7 |
+
Tested up to: 4.7
|
8 |
|
9 |
Version: 3.5.3
|
10 |
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== WordPress Email Marketing Plugin - WP Email Capture ===
|
2 |
Tags: email marketing, email, mailing list, widget ready, gutenberg ready, gdpr
|
3 |
Requires at least: 5.0
|
4 |
-
Tested up to: 5.
|
5 |
-
Version: 3.8.
|
6 |
-
Stable tag: 3.8.
|
7 |
Contributors: rhyswynne
|
8 |
Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
|
9 |
|
@@ -156,9 +156,12 @@ This plugin does use widgets, so probably yes :)
|
|
156 |
= How do I include the name in my emails I send to people? =
|
157 |
Wherever you put in %NAME% (spelt exactly like that, uppercase as well), it will be replaced with the name given by the user.
|
158 |
|
159 |
-
== Change Log ==
|
160 |
-
= 3.8.
|
161 |
-
*
|
|
|
|
|
|
|
162 |
|
163 |
= 3.8 =
|
164 |
* Added a new button to the classic editor allowing you to place the form anywhere.
|
1 |
=== WordPress Email Marketing Plugin - WP Email Capture ===
|
2 |
Tags: email marketing, email, mailing list, widget ready, gutenberg ready, gdpr
|
3 |
Requires at least: 5.0
|
4 |
+
Tested up to: 5.5
|
5 |
+
Version: 3.8.2
|
6 |
+
Stable tag: 3.8.2
|
7 |
Contributors: rhyswynne
|
8 |
Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
|
9 |
|
156 |
= How do I include the name in my emails I send to people? =
|
157 |
Wherever you put in %NAME% (spelt exactly like that, uppercase as well), it will be replaced with the name given by the user.
|
158 |
|
159 |
+
== Change Log ==
|
160 |
+
= 3.8.2 =
|
161 |
+
* Tested to 5.5.
|
162 |
+
|
163 |
+
= 3.8.1 =
|
164 |
+
* Version with all the missing files from 3.8!
|
165 |
|
166 |
= 3.8 =
|
167 |
* Added a new button to the classic editor allowing you to place the form anywhere.
|
wp-email-capture.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: WP Email Capture
|
5 |
Plugin URI: https://www.wpemailcapture.com/?utm_source=plugin-link&utm_medium=plugin&utm_campaign=wpemailcapture
|
6 |
Description: Captures email addresses for insertion into software such as <a href="https://www.wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a>, <a href="https://www.wpemailcapture.com/recommends/constant-contact/">Constant Contact</a> or <a href="https://www.wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
|
7 |
-
Version: 3.8.
|
8 |
Author: Winwar Media
|
9 |
Author URI: https://www.winwar.co.uk/?utm_source=author-link&utm_medium=plugin&utm_campaign=wpemailcapture
|
10 |
*/
|
@@ -19,7 +19,7 @@ define( 'WP_EMAIL_CAPTURE_PATH', dirname( __FILE__ ) );
|
|
19 |
define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
|
20 |
define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members' );
|
21 |
define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members' );
|
22 |
-
define( 'WP_EMAIL_CAPTURE_VERSION', '3.8.
|
23 |
define( 'WP_EMAIL_MIN_MYSQL_VERSION', '5.6' );
|
24 |
|
25 |
require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
|
4 |
Plugin Name: WP Email Capture
|
5 |
Plugin URI: https://www.wpemailcapture.com/?utm_source=plugin-link&utm_medium=plugin&utm_campaign=wpemailcapture
|
6 |
Description: Captures email addresses for insertion into software such as <a href="https://www.wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a>, <a href="https://www.wpemailcapture.com/recommends/constant-contact/">Constant Contact</a> or <a href="https://www.wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
|
7 |
+
Version: 3.8.2
|
8 |
Author: Winwar Media
|
9 |
Author URI: https://www.winwar.co.uk/?utm_source=author-link&utm_medium=plugin&utm_campaign=wpemailcapture
|
10 |
*/
|
19 |
define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
|
20 |
define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members' );
|
21 |
define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members' );
|
22 |
+
define( 'WP_EMAIL_CAPTURE_VERSION', '3.8.2' );
|
23 |
define( 'WP_EMAIL_MIN_MYSQL_VERSION', '5.6' );
|
24 |
|
25 |
require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
|