Version Description
(08/07/13) = * Fixed a few bug fixes that were spotted in Debug Mode (from forum member Ov3rfly).
Download this release
Release Info
Developer | rhyswynne |
Plugin | WordPress Email Marketing Plugin – WP Email Capture |
Version | 2.7.7 |
Comparing to | |
See all releases |
Code changes from version 2.7.6 to 2.7.7
- inc/display.php +2 -2
- inc/exportcsv.php +2 -2
- inc/options.php +1 -1
- inc/process.php +1 -1
- inc/tabledata.php +5 -3
- inc/widget.php +4 -4
- readme.txt +6 -3
- wp-email-capture.php +1 -1
inc/display.php
CHANGED
@@ -47,8 +47,8 @@ function wp_email_capture_form_page($error = 0)
|
|
47 |
|
48 |
$url = get_option('home');
|
49 |
$url = addLastCharacter($url);
|
50 |
-
|
51 |
-
|
52 |
|
53 |
if (isset($_GET['wp_email_capture_error'])) {
|
54 |
|
47 |
|
48 |
$url = get_option('home');
|
49 |
$url = addLastCharacter($url);
|
50 |
+
$display = "";
|
51 |
+
$display .= "<div id='wp_email_capture_2' class='wp-email-capture wp-email-capture-display'><form name='wp_email_capture_display' method='post' action='" . $url ."'>\n";
|
52 |
|
53 |
if (isset($_GET['wp_email_capture_error'])) {
|
54 |
|
inc/exportcsv.php
CHANGED
@@ -10,7 +10,7 @@ function wp_email_capture_export()
|
|
10 |
|
11 |
global $wpdb;
|
12 |
|
13 |
-
|
14 |
|
15 |
$csv_output .= __('Name','WPEC').",".__('Email','WPEC');
|
16 |
|
@@ -33,7 +33,7 @@ function wp_email_capture_export()
|
|
33 |
}
|
34 |
|
35 |
|
36 |
-
|
37 |
$filename = $file."_".date("Y-m-d_H-i",time());
|
38 |
|
39 |
header("Content-type: application/vnd.ms-excel");
|
10 |
|
11 |
global $wpdb;
|
12 |
|
13 |
+
$csv_output = "";
|
14 |
|
15 |
$csv_output .= __('Name','WPEC').",".__('Email','WPEC');
|
16 |
|
33 |
}
|
34 |
|
35 |
|
36 |
+
$file = 'WP_Email_Capture';
|
37 |
$filename = $file."_".date("Y-m-d_H-i",time());
|
38 |
|
39 |
header("Content-type: application/vnd.ms-excel");
|
inc/options.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
function wp_email_capture_menus() {
|
4 |
|
5 |
-
add_options_page(__('WP Email Capture Options','WPEC'), 'WP Email Capture',
|
6 |
|
7 |
}
|
8 |
|
2 |
|
3 |
function wp_email_capture_menus() {
|
4 |
|
5 |
+
add_options_page(__('WP Email Capture Options','WPEC'), 'WP Email Capture', 'activate_plugins', 'wpemailcaptureoptions', 'wp_email_capture_options');
|
6 |
|
7 |
}
|
8 |
|
inc/process.php
CHANGED
@@ -171,7 +171,7 @@ if (wp_email_capture_double_check_everything($name, $email))
|
|
171 |
$fromname = get_option('blogname');
|
172 |
}
|
173 |
$header = "MIME-Version: 1.0\n" . "From: " . $fromname . " <" . $from . ">\n";
|
174 |
-
$header .= "Content-Type: text/plain; charset=\"" .
|
175 |
// Your message
|
176 |
|
177 |
$message.= get_option('wp_email_capture_body') . "\n\n";
|
171 |
$fromname = get_option('blogname');
|
172 |
}
|
173 |
$header = "MIME-Version: 1.0\n" . "From: " . $fromname . " <" . $from . ">\n";
|
174 |
+
$header .= "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
|
175 |
// Your message
|
176 |
|
177 |
$message.= get_option('wp_email_capture_body') . "\n\n";
|
inc/tabledata.php
CHANGED
@@ -37,9 +37,11 @@ function wp_email_capture_writetable($limit = 0, $header = '')
|
|
37 |
<tr><td><strong><?php _e('Name','WPEC'); ?></strong></td><td colspan="2"><strong><?php _e('Email','WPEC'); ?></strong></td></tr>
|
38 |
|
39 |
<?php foreach ($results as $result) {
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
|
43 |
echo "<tr><td style='width: 300px;'>" . $result->name ."</td><td style='width: 300px;'>" . $result->email ."</td><td style='width: 300px;'>
|
44 |
". $delid ."</td>
|
45 |
|
37 |
<tr><td><strong><?php _e('Name','WPEC'); ?></strong></td><td colspan="2"><strong><?php _e('Email','WPEC'); ?></strong></td></tr>
|
38 |
|
39 |
<?php foreach ($results as $result) {
|
40 |
+
if ($limit == 0) {
|
41 |
+
$delid = wp_email_capture_formdelete($result->id, $result->email);
|
42 |
+
} else {
|
43 |
+
$delid = '';
|
44 |
+
}
|
45 |
echo "<tr><td style='width: 300px;'>" . $result->name ."</td><td style='width: 300px;'>" . $result->email ."</td><td style='width: 300px;'>
|
46 |
". $delid ."</td>
|
47 |
|
inc/widget.php
CHANGED
@@ -45,16 +45,16 @@ class wp_email_capture_widget_class extends WP_Widget {
|
|
45 |
* admin control form
|
46 |
*/
|
47 |
function form($instance) {
|
48 |
-
$default =
|
49 |
$instance = wp_parse_args( (array) $instance, $default );
|
50 |
|
51 |
$title_id = $this->get_field_id('widget_title');
|
52 |
$title_name = $this->get_field_name('widget_title');
|
53 |
$text_id = $this->get_field_id('widget_text');
|
54 |
$text_name = $this->get_field_name('widget_text');
|
55 |
-
echo "\r\n".'<p><label for="'.$title_id.'">'.__('Widget title:','WPEC').': <input type="text" class="widefat" id="'.$title_id.'" name="'.$title_name.'" value="'.
|
56 |
-
|
57 |
-
|
58 |
}
|
59 |
|
60 |
}
|
45 |
* admin control form
|
46 |
*/
|
47 |
function form($instance) {
|
48 |
+
$default = array( 'widget_title' => __('Subscribe!','WPEC'), 'widget_text' => __('Subscribe to my blog for updates','WPEC') );
|
49 |
$instance = wp_parse_args( (array) $instance, $default );
|
50 |
|
51 |
$title_id = $this->get_field_id('widget_title');
|
52 |
$title_name = $this->get_field_name('widget_title');
|
53 |
$text_id = $this->get_field_id('widget_text');
|
54 |
$text_name = $this->get_field_name('widget_text');
|
55 |
+
echo "\r\n".'<p><label for="'.$title_id.'">'.__('Widget title:','WPEC').': <input type="text" class="widefat" id="'.$title_id.'" name="'.$title_name.'" value="'.esc_attr( $instance['widget_title'] ).'" /><label></p>';
|
56 |
+
echo "\r\n".'<p><label for="'.$text_id.'">'.__('Widget text:','WPEC').': <input type="text" class="widefat" id="'.$text_id.'" name="'.$text_name .'" value="'.esc_attr( $instance['widget_text'] ).'" /><label></p>';
|
57 |
+
|
58 |
}
|
59 |
|
60 |
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
|
3 |
Requires at least: 3.0
|
4 |
Tested up to: 3.5.1
|
5 |
-
Version: 2.7.
|
6 |
-
Stable tag: 2.7.
|
7 |
Contributors: rhyswynne
|
8 |
Donate link: http://wpemailcapture.com/pricing/
|
9 |
|
@@ -39,7 +39,7 @@ Keep in Contact:-
|
|
39 |
* [WP Email Capture on Facebook](http://www.facebook.com/wpemailcapture)
|
40 |
* [@WPEmailCapture](http://www.twitter.com/wpemailcapture) on Twitter
|
41 |
* For support requests please visit the [FAQ's](http://wpemailcapture.com/free-plugin/frequently-asked-questions/), or leave a message in the Wordpress Support Forum.
|
42 |
-
* For general feature requests or bug notices [please contact me directly](http://wpemailcapture.com/contact/), however any support requests sent via the contact form will be ignored - please use the WordPress Support Forum.
|
43 |
|
44 |
Translation Credits:-
|
45 |
|
@@ -152,6 +152,9 @@ Please report any bugs, support and suggestions to the [WP Email Capture Support
|
|
152 |
To donate to this plugin, please visit the [WP Email Capture Donations Page](http://www.wpemailcapture.com/pricing/)
|
153 |
|
154 |
== Change Log ==
|
|
|
|
|
|
|
155 |
= 2.7.6 (12/06/13) =
|
156 |
* You can now translate error messages.
|
157 |
|
2 |
Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
|
3 |
Requires at least: 3.0
|
4 |
Tested up to: 3.5.1
|
5 |
+
Version: 2.7.7
|
6 |
+
Stable tag: 2.7.7
|
7 |
Contributors: rhyswynne
|
8 |
Donate link: http://wpemailcapture.com/pricing/
|
9 |
|
39 |
* [WP Email Capture on Facebook](http://www.facebook.com/wpemailcapture)
|
40 |
* [@WPEmailCapture](http://www.twitter.com/wpemailcapture) on Twitter
|
41 |
* For support requests please visit the [FAQ's](http://wpemailcapture.com/free-plugin/frequently-asked-questions/), or leave a message in the Wordpress Support Forum.
|
42 |
+
* For general feature requests or bug notices [please contact me directly](http://wpemailcapture.com/contact/), however any support requests sent via the contact form will be ignored - please use the WordPress Support Forum - please note I'm unable to support CSS or styling queries, please read the "Stylings" area on other notes.
|
43 |
|
44 |
Translation Credits:-
|
45 |
|
152 |
To donate to this plugin, please visit the [WP Email Capture Donations Page](http://www.wpemailcapture.com/pricing/)
|
153 |
|
154 |
== Change Log ==
|
155 |
+
= 2.7.7 (08/07/13) =
|
156 |
+
* Fixed a few bug fixes that were spotted in Debug Mode (from forum member Ov3rfly).
|
157 |
+
|
158 |
= 2.7.6 (12/06/13) =
|
159 |
* You can now translate error messages.
|
160 |
|
wp-email-capture.php
CHANGED
@@ -8,7 +8,7 @@ Plugin URI: http://www.wpemailcapture.com
|
|
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: 2.7.
|
12 |
|
13 |
Author: Rhys Wynne
|
14 |
|
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: 2.7.7
|
12 |
|
13 |
Author: Rhys Wynne
|
14 |
|