Version Description
- Removed a redundant file that, if hacked in, could lead to an injection of content. This file was not called normally but in order to remove it upgrade to this version. ** Update strongly required **
- Fixed a bug which saw a notice appear of a missing option on the upgrade and dashboard page.
- Removed a double header in Dashboard widget (props Ove3rfly).
- Correct textdomain used in some files (props Ov3rfly).
- Removed all PHP closing tags through the site (props Ov3rfly).
Download this release
Release Info
Developer | rhyswynne |
Plugin | WordPress Email Marketing Plugin – WP Email Capture |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.1.1
- inc/admin-sidebar.php +0 -1
- inc/core.php +1 -2
- inc/dashboard.php +10 -12
- inc/deprecated/pagedresults.php +3 -3
- inc/display.php +14 -16
- inc/enqueue.php +1 -3
- inc/exportcsv.php +1 -5
- inc/functions.php +3 -5
- inc/help.php +1 -1
- inc/install.php +1 -5
- inc/options.php +28 -25
- inc/process.php +3 -3
- inc/security.php +1 -5
- inc/tabledata.php +2 -3
- inc/tempdata.php +1 -3
- inc/tracking.php +1 -1
- inc/widget.php +13 -12
- languages/{WPEC-de_DE.mo → wp-email-capture-de_DE.mo} +0 -0
- languages/{WPEC-de_DE.po → wp-email-capture-de_DE.po} +0 -0
- languages/{WPEC-es_ES.mo → wp-email-capture-es_ES.mo} +0 -0
- languages/{WPEC-es_ES.po → wp-email-capture-es_ES.po} +0 -0
- languages/{WPEC-fr_FR.mo → wp-email-capture-fr_FR.mo} +0 -0
- languages/{WPEC-fr_FR.po → wp-email-capture-fr_FR.po} +0 -0
- languages/wp-email-capture-hr.mo +0 -0
- languages/wp-email-capture-hr.po +1 -0
- languages/{WPEC-hu_HU.mo → wp-email-capture-hu_HU.mo} +0 -0
- languages/{WPEC-hu_HU.po → wp-email-capture-hu_HU.po} +0 -0
- languages/{WPEC-it_IT.mo → wp-email-capture-it_IT.mo} +0 -0
- languages/{WPEC-it_IT.po → wp-email-capture-it_IT.po} +0 -0
- languages/{WPEC-nl_NL.mo → wp-email-capture-nl_NL.mo} +0 -0
- languages/{WPEC-nl_NL.po → wp-email-capture-nl_NL.po} +0 -0
- languages/{WPEC-pt_BR.mo → wp-email-capture-pt_BR.mo} +0 -0
- languages/{WPEC-pt_BR.po → wp-email-capture-pt_BR.po} +0 -0
- languages/{WPEC-sr_RS.mo → wp-email-capture-sr_RS.mo} +0 -0
- languages/{WPEC-sr_RS.po → wp-email-capture-sr_RS.po} +0 -0
- readme.txt +21 -2
- wp-email-capture.php +5 -8
inc/admin-sidebar.php
CHANGED
@@ -139,4 +139,3 @@ function wp_email_capture_admin_sidebar( $sidestring ) {
|
|
139 |
echo '</div></div></div>';
|
140 |
|
141 |
}
|
142 |
-
?>
|
139 |
echo '</div></div></div>';
|
140 |
|
141 |
}
|
|
inc/core.php
CHANGED
@@ -28,5 +28,4 @@ require_once(WP_EMAIL_CAPTURE_PATH . '/inc/enqueue.php');
|
|
28 |
|
29 |
//require_once(WP_EMAIL_CAPTURE_PATH . '/inc/tracking.php');
|
30 |
|
31 |
-
require_once(WP_EMAIL_CAPTURE_PATH . '/inc/help.php');
|
32 |
-
?>
|
28 |
|
29 |
//require_once(WP_EMAIL_CAPTURE_PATH . '/inc/tracking.php');
|
30 |
|
31 |
+
require_once(WP_EMAIL_CAPTURE_PATH . '/inc/help.php');
|
|
inc/dashboard.php
CHANGED
@@ -8,25 +8,25 @@
|
|
8 |
*/
|
9 |
function wp_email_capture_dashboard_widget() {
|
10 |
|
11 |
-
wp_email_capture_writetable(3, "<strong>".__('Last Three Members To Join','
|
12 |
|
13 |
$tempemails = wp_email_capture_count_temp();
|
14 |
|
15 |
-
echo '<br/><br/><a name="list"></a><strong>'.__('Export','
|
16 |
echo '<form name="wp_email_capture_export" action="'. esc_url($_SERVER['REQUEST_URI']) . '#list" method="post">';
|
17 |
-
echo '<label>'.__('Use the button below to export your list as a CSV to use in software such as','
|
18 |
echo '<input type="hidden" name="wp_email_capture_export" />';
|
19 |
-
echo '<div class="submit"><input type="submit" value="'.__('Export List','
|
20 |
echo "</form><br/><br/>";
|
21 |
|
22 |
$tempemails = wp_email_capture_count_temp();
|
23 |
-
|
24 |
-
echo "<a name='truncate'></a><strong>".__('Temporary e-mails','
|
25 |
echo '<form name="wp_email_capture_truncate" action="'. esc_url($_SERVER['REQUEST_URI']) . '#truncate" method="post">';
|
26 |
-
echo '<label>'.__('There are','
|
27 |
|
28 |
echo '<input type="hidden" name="wp_email_capture_truncate"/>';
|
29 |
-
echo '<div class="submit"><input type="submit" value="'.__('Delete Unconfirmed e-mail Addresses','
|
30 |
echo "</form>";
|
31 |
|
32 |
|
@@ -42,9 +42,7 @@ function wp_email_capture_dashboard_widget() {
|
|
42 |
function wp_email_capture_add_dashboard_widgets() {
|
43 |
|
44 |
if (current_user_can( apply_filters( 'wp_email_capture_dashboard_capability', 'manage_options' ) )){
|
45 |
-
wp_add_dashboard_widget('wp_email_capture_dashboard_widget', __('WP Email Capture - At A Glance','
|
46 |
}
|
47 |
|
48 |
-
}
|
49 |
-
|
50 |
-
?>
|
8 |
*/
|
9 |
function wp_email_capture_dashboard_widget() {
|
10 |
|
11 |
+
wp_email_capture_writetable(3, "<strong>".__('Last Three Members To Join','wp-email-capture')."</strong><br/><br/>");
|
12 |
|
13 |
$tempemails = wp_email_capture_count_temp();
|
14 |
|
15 |
+
echo '<br/><br/><a name="list"></a><strong>'.__('Export','wp-email-capture').'</strong>';
|
16 |
echo '<form name="wp_email_capture_export" action="'. esc_url($_SERVER['REQUEST_URI']) . '#list" method="post">';
|
17 |
+
echo '<label>'.__('Use the button below to export your list as a CSV to use in software such as','wp-email-capture').' <a href="http://www.gospelrhys.co.uk/go/aweber.php" title="Email Marketing">Aweber</a>.</label>';
|
18 |
echo '<input type="hidden" name="wp_email_capture_export" />';
|
19 |
+
echo '<div class="submit"><input type="submit" value="'.__('Export List','wp-email-capture').'" class="button" /></div>';
|
20 |
echo "</form><br/><br/>";
|
21 |
|
22 |
$tempemails = wp_email_capture_count_temp();
|
23 |
+
|
24 |
+
echo "<a name='truncate'></a><strong>".__('Temporary e-mails','wp-email-capture')."</strong>\n";
|
25 |
echo '<form name="wp_email_capture_truncate" action="'. esc_url($_SERVER['REQUEST_URI']) . '#truncate" method="post">';
|
26 |
+
echo '<label>'.__('There are','wp-email-capture').' '. $tempemails . ' '.__('e-mail addresses that have been unconfirmed. Delete them to save space below.','wp-email-capture').'</label>';
|
27 |
|
28 |
echo '<input type="hidden" name="wp_email_capture_truncate"/>';
|
29 |
+
echo '<div class="submit"><input type="submit" value="'.__('Delete Unconfirmed e-mail Addresses','wp-email-capture').'" class="button" /></div>';
|
30 |
echo "</form>";
|
31 |
|
32 |
|
42 |
function wp_email_capture_add_dashboard_widgets() {
|
43 |
|
44 |
if (current_user_can( apply_filters( 'wp_email_capture_dashboard_capability', 'manage_options' ) )){
|
45 |
+
wp_add_dashboard_widget('wp_email_capture_dashboard_widget', __('WP Email Capture - At A Glance','wp-email-capture'), 'wp_email_capture_dashboard_widget');
|
46 |
}
|
47 |
|
48 |
+
}
|
|
|
|
inc/deprecated/pagedresults.php
CHANGED
@@ -24,7 +24,7 @@ class MySQLPagedResultSet
|
|
24 |
|
25 |
|
26 |
|
27 |
-
$resultpage = $_GET['resultpage'];
|
28 |
|
29 |
|
30 |
|
@@ -138,7 +138,7 @@ class MySQLPagedResultSet
|
|
138 |
|
139 |
$nav .= "<a href=\"?resultpage=".
|
140 |
|
141 |
-
($this->getPageNum()-1).'&'.$queryvars.'">'.__('Prev','
|
142 |
|
143 |
}
|
144 |
|
@@ -166,7 +166,7 @@ class MySQLPagedResultSet
|
|
166 |
|
167 |
$nav .= "<a href=\"?resultpage=".
|
168 |
|
169 |
-
($this->getPageNum()+1).'&'.$queryvars.'">'.__('Next','
|
170 |
|
171 |
}
|
172 |
|
24 |
|
25 |
|
26 |
|
27 |
+
$resultpage = esc_attr( $_GET['resultpage'] );
|
28 |
|
29 |
|
30 |
|
138 |
|
139 |
$nav .= "<a href=\"?resultpage=".
|
140 |
|
141 |
+
($this->getPageNum()-1).'&'.$queryvars.'">'.__('Prev','wp-email-capture').'</a> ';
|
142 |
|
143 |
}
|
144 |
|
166 |
|
167 |
$nav .= "<a href=\"?resultpage=".
|
168 |
|
169 |
+
($this->getPageNum()+1).'&'.$queryvars.'">'.__('Next','wp-email-capture').'</a> ';
|
170 |
|
171 |
}
|
172 |
|
inc/display.php
CHANGED
@@ -18,23 +18,23 @@ function wp_email_capture_form( $error = "" ) {
|
|
18 |
|
19 |
<?php
|
20 |
|
21 |
-
if (isset($_GET['wp_email_capture_error'])) {
|
22 |
|
23 |
-
$error = esc_attr($_GET['wp_email_capture_error']);
|
24 |
|
25 |
-
echo "<div class='wp-email-capture-error'>".__('Error:','
|
26 |
|
27 |
}
|
28 |
|
29 |
?>
|
30 |
|
31 |
-
<label class="wp-email-capture-name wp-email-capture-label wp-email-capture-widget-worldwide wp-email-capture-name-widget wp-email-capture-name-label wp-email-capture-name-label-widget<?php if (get_option("wp_email_capture_name_required") == 1 ) { $display .= " wp-email-capture-required"; } ?>" for="wp-email-capture-name-widget"><?php _e('Name:','
|
32 |
|
33 |
-
<label class="wp-email-capture-email wp-email-capture-label wp-email-capture-widget-worldwide wp-email-capture-email-widget wp-email-capture-email-label wp-email-capture-email-label-widget" for="wp-email-capture-email-widget"><?php _e('Email:','
|
34 |
|
35 |
<input type="hidden" name="wp_capture_action" value="1" />
|
36 |
|
37 |
-
<input name="Submit" type="submit" value="<?php _e('Submit','
|
38 |
|
39 |
</form>
|
40 |
|
@@ -42,7 +42,7 @@ function wp_email_capture_form( $error = "" ) {
|
|
42 |
|
43 |
<?php if (get_option("wp_email_capture_link") == 1) {
|
44 |
|
45 |
-
echo "<p style='font-size:10px;'>".__('Powered by','
|
46 |
|
47 |
}
|
48 |
|
@@ -63,11 +63,11 @@ function wp_email_capture_form_page( $atts, $error = "") {
|
|
63 |
$display = "";
|
64 |
$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";
|
65 |
|
66 |
-
if (isset($_GET['wp_email_capture_error'])) {
|
67 |
|
68 |
$error = esc_attr($_GET['wp_email_capture_error']);
|
69 |
|
70 |
-
$display .= "<div class='wp-email-capture-error'>" . __('Error:','
|
71 |
|
72 |
}
|
73 |
|
@@ -75,17 +75,17 @@ function wp_email_capture_form_page( $atts, $error = "") {
|
|
75 |
|
76 |
if (get_option("wp_email_capture_name_required") == 1) { $display .= " wp-email-capture-required"; }
|
77 |
|
78 |
-
$display .= "' for='wp-email-capture-name-display'>".__('Name:','
|
79 |
|
80 |
-
$display .= "<label class='wp-email-capture-email wp-email-capture-label wp-email-capture-display wp-email-capture-email-display wp-email-capture-email-label wp-email-capture-email-label-display' for='wp-email-capture-email-display'>".__('Email:','
|
81 |
|
82 |
$display .= "<input type='hidden' name='wp_capture_action' value='1' />\n";
|
83 |
|
84 |
-
$display .= "<input name='Submit' type='submit' value='".__('Submit','
|
85 |
|
86 |
if (get_option("wp_email_capture_link") == 1) {
|
87 |
|
88 |
-
$display .= "<p style='font-size:10px;'>".__('Powered by','
|
89 |
}
|
90 |
|
91 |
$display = apply_filters( 'wp_email_capture_display_form', $display, $atts );
|
@@ -101,6 +101,4 @@ function wp_email_capture_form_page( $atts, $error = "") {
|
|
101 |
*/
|
102 |
function wp_email_capture_form_process_atts( $atts ) {
|
103 |
return wp_email_capture_form_page( $atts );
|
104 |
-
}
|
105 |
-
|
106 |
-
?>
|
18 |
|
19 |
<?php
|
20 |
|
21 |
+
if ( isset( $_GET['wp_email_capture_error'] ) ) {
|
22 |
|
23 |
+
$error = esc_attr( $_GET['wp_email_capture_error'] );
|
24 |
|
25 |
+
echo "<div class='wp-email-capture-error'>".__('Error:','wp-email-capture'). " " .$error ."</div>";
|
26 |
|
27 |
}
|
28 |
|
29 |
?>
|
30 |
|
31 |
+
<label class="wp-email-capture-name wp-email-capture-label wp-email-capture-widget-worldwide wp-email-capture-name-widget wp-email-capture-name-label wp-email-capture-name-label-widget<?php if (get_option("wp_email_capture_name_required") == 1 ) { $display .= " wp-email-capture-required"; } ?>" for="wp-email-capture-name-widget"><?php _e('Name:','wp-email-capture'); ?></label> <input name="wp-email-capture-name" id="wp-email-capture-name-widget" type="text" class="wp-email-capture-name wp-email-capture-input wp-email-capture-widget-worldwide wp-email-capture-name-widget wp-email-capture-name-input wp-email-capture-name-input-widget" title="Name" /><br/>
|
32 |
|
33 |
+
<label class="wp-email-capture-email wp-email-capture-label wp-email-capture-widget-worldwide wp-email-capture-email-widget wp-email-capture-email-label wp-email-capture-email-label-widget" for="wp-email-capture-email-widget"><?php _e('Email:','wp-email-capture'); ?></label> <input name="wp-email-capture-email" id="wp-email-capture-email-widget" type="text" class="wp-email-capture-email wp-email-capture-input wp-email-capture-widget-worldwide wp-email-capture-email-widget wp-email-capture-email-input wp-email-capture-email-input-widget" title="Email" /><br/>
|
34 |
|
35 |
<input type="hidden" name="wp_capture_action" value="1" />
|
36 |
|
37 |
+
<input name="Submit" type="submit" value="<?php _e('Submit','wp-email-capture'); ?>" class="wp-email-capture-submit wp-email-capture-widget-worldwide" />
|
38 |
|
39 |
</form>
|
40 |
|
42 |
|
43 |
<?php if (get_option("wp_email_capture_link") == 1) {
|
44 |
|
45 |
+
echo "<p style='font-size:10px;'>".__('Powered by','wp-email-capture')." <a href='http://wpemailcapture.com/' target='_blank'>WP Email Capture</a></p>\n";
|
46 |
|
47 |
}
|
48 |
|
63 |
$display = "";
|
64 |
$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";
|
65 |
|
66 |
+
if ( isset( $_GET['wp_email_capture_error'] ) ) {
|
67 |
|
68 |
$error = esc_attr($_GET['wp_email_capture_error']);
|
69 |
|
70 |
+
$display .= "<div class='wp-email-capture-error'>" . __('Error:','wp-email-capture'). " " . $error ."</div>\n";
|
71 |
|
72 |
}
|
73 |
|
75 |
|
76 |
if (get_option("wp_email_capture_name_required") == 1) { $display .= " wp-email-capture-required"; }
|
77 |
|
78 |
+
$display .= "' for='wp-email-capture-name-display'>".__('Name:','wp-email-capture')."</label> <input name='wp-email-capture-name' id='wp-email-capture-name-display' type='text' class='wp-email-capture-name wp-email-capture-label wp-email-capture-display-worldwide wp-email-capture-name-display wp-email-capture-name-input wp-email-capture-name-input-display' title='Name' /><br/>\n";
|
79 |
|
80 |
+
$display .= "<label class='wp-email-capture-email wp-email-capture-label wp-email-capture-display wp-email-capture-email-display wp-email-capture-email-label wp-email-capture-email-label-display' for='wp-email-capture-email-display'>".__('Email:','wp-email-capture')."</label> <input name='wp-email-capture-email' id='wp-email-capture-email-display' type='text' class='wp-email-capture-email wp-email-capture-input wp-email-capture-display wp-email-capture-email-display wp-email-capture-email-input wp-email-capture-email-input-display' title='Email' /><br/>\n";
|
81 |
|
82 |
$display .= "<input type='hidden' name='wp_capture_action' value='1' />\n";
|
83 |
|
84 |
+
$display .= "<input name='Submit' type='submit' value='".__('Submit','wp-email-capture')."' class='wp-email-capture-submit' /></form></div>\n";
|
85 |
|
86 |
if (get_option("wp_email_capture_link") == 1) {
|
87 |
|
88 |
+
$display .= "<p style='font-size:10px;'>".__('Powered by','wp-email-capture')." <a href='http://wpemailcapture.com/' target='_blank'>WP Email Capture</a></p>\n";
|
89 |
}
|
90 |
|
91 |
$display = apply_filters( 'wp_email_capture_display_form', $display, $atts );
|
101 |
*/
|
102 |
function wp_email_capture_form_process_atts( $atts ) {
|
103 |
return wp_email_capture_form_page( $atts );
|
104 |
+
}
|
|
|
|
inc/enqueue.php
CHANGED
@@ -18,6 +18,4 @@ function wp_email_capture_admin_scripts() {
|
|
18 |
/* Register our stylesheet. */
|
19 |
wp_enqueue_script( 'wpemailcaptureadminjs', WP_EMAIL_CAPTURE_URL . '/inc/js/admin-custom.js', array( 'jquery' ), '3.0' );
|
20 |
wp_enqueue_style( 'wpemailcapturestyles', WP_EMAIL_CAPTURE_URL . '/inc/css/wp-email-capture-admin-styles.css', array(), '1.0' );
|
21 |
-
}
|
22 |
-
|
23 |
-
?>
|
18 |
/* Register our stylesheet. */
|
19 |
wp_enqueue_script( 'wpemailcaptureadminjs', WP_EMAIL_CAPTURE_URL . '/inc/js/admin-custom.js', array( 'jquery' ), '3.0' );
|
20 |
wp_enqueue_style( 'wpemailcapturestyles', WP_EMAIL_CAPTURE_URL . '/inc/css/wp-email-capture-admin-styles.css', array(), '1.0' );
|
21 |
+
}
|
|
|
|
inc/exportcsv.php
CHANGED
@@ -43,8 +43,4 @@ function wp_email_capture_export() {
|
|
43 |
|
44 |
exit;
|
45 |
|
46 |
-
}
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
?>
|
43 |
|
44 |
exit;
|
45 |
|
46 |
+
}
|
|
|
|
|
|
|
|
inc/functions.php
CHANGED
@@ -62,7 +62,7 @@ function wp_email_capture_admin_notice() {
|
|
62 |
_e( 'Allow Tracking?', 'wp-email-capture' );
|
63 |
echo '</h4>';
|
64 |
echo '<p>';
|
65 |
-
_e( 'Thank you for installing WP Email Capture. Please help us improve by allowing us to gather anonymous usage stats such as themes and plugins used on your site, to help us test.','
|
66 |
echo '</p>';
|
67 |
printf ( __('<p><a href="%1$s" class="button-primary">Allow Tracking</a> <a href="%2$s" class="button-secondary">Do Not Allow Tracking</a></p>', 'wp-email-capture' ), '?wp_email_capture_tracking=1', '?wp_email_capture_tracking=2' );
|
68 |
echo '</div>';
|
@@ -102,7 +102,7 @@ function wp_email_capture_admin_upsell() {
|
|
102 |
<h3>WP Email Capture - Over 500 Emails</h3>
|
103 |
<p>WP Email Capture has over 500 entries. Whilst the plugin is free for use forever, it does struggle a bit with very large lists.</p>
|
104 |
<p>WP Email Caputre Premium is better suited to large lists, so please consider upgrading. As a thank you for using us for so long, use discount code <strong>%3$s</strong> for <strong>%4$s</strong> off.</p>
|
105 |
-
<p><a href="%2$s" class="button button-primary button-hero"><strong>
|
106 |
echo "</div>";
|
107 |
}
|
108 |
}
|
@@ -168,6 +168,4 @@ function wp_email_capture_get_number_of_registered_users() {
|
|
168 |
|
169 |
return $get_number_of_regs;
|
170 |
|
171 |
-
}
|
172 |
-
|
173 |
-
?>
|
62 |
_e( 'Allow Tracking?', 'wp-email-capture' );
|
63 |
echo '</h4>';
|
64 |
echo '<p>';
|
65 |
+
_e( 'Thank you for installing WP Email Capture. Please help us improve by allowing us to gather anonymous usage stats such as themes and plugins used on your site, to help us test.','wp-email-capture');
|
66 |
echo '</p>';
|
67 |
printf ( __('<p><a href="%1$s" class="button-primary">Allow Tracking</a> <a href="%2$s" class="button-secondary">Do Not Allow Tracking</a></p>', 'wp-email-capture' ), '?wp_email_capture_tracking=1', '?wp_email_capture_tracking=2' );
|
68 |
echo '</div>';
|
102 |
<h3>WP Email Capture - Over 500 Emails</h3>
|
103 |
<p>WP Email Capture has over 500 entries. Whilst the plugin is free for use forever, it does struggle a bit with very large lists.</p>
|
104 |
<p>WP Email Caputre Premium is better suited to large lists, so please consider upgrading. As a thank you for using us for so long, use discount code <strong>%3$s</strong> for <strong>%4$s</strong> off.</p>
|
105 |
+
<p><a href="%2$s" class="button button-primary button-hero"><strong>Upgrade WP Email Capture</strong></a></p></div>' ), '?wp_email_capture_upsell_ignore=0', $upgradeurl, $discountcode, $discountamount );
|
106 |
echo "</div>";
|
107 |
}
|
108 |
}
|
168 |
|
169 |
return $get_number_of_regs;
|
170 |
|
171 |
+
}
|
|
|
|
inc/help.php
CHANGED
@@ -167,7 +167,7 @@ function wp_email_capture_list_help() {
|
|
167 |
<?php
|
168 |
|
169 |
if ( $purchasepageurl ) {
|
170 |
-
printf( __( '<p>WP Email Capture is only designed to be used for small (under 500 entries) lists. You can use it for more, but please consider <a href="%s" target="_blank">purchasing the premium version</a> if your list gets too big.</p>','
|
171 |
}
|
172 |
?>
|
173 |
|
167 |
<?php
|
168 |
|
169 |
if ( $purchasepageurl ) {
|
170 |
+
printf( __( '<p>WP Email Capture is only designed to be used for small (under 500 entries) lists. You can use it for more, but please consider <a href="%s" target="_blank">purchasing the premium version</a> if your list gets too big.</p>','wp-email-capture' ), $purchasepageurl );
|
171 |
}
|
172 |
?>
|
173 |
|
inc/install.php
CHANGED
@@ -64,8 +64,4 @@ function wp_email_capture_install() {
|
|
64 |
add_option( 'wp_email_capture_from', $from );
|
65 |
add_option( "wp_email_capture_db_version", $wp_email_capture_db_version );
|
66 |
|
67 |
-
}
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
?>
|
64 |
add_option( 'wp_email_capture_from', $from );
|
65 |
add_option( "wp_email_capture_db_version", $wp_email_capture_db_version );
|
66 |
|
67 |
+
}
|
|
|
|
|
|
|
|
inc/options.php
CHANGED
@@ -7,9 +7,9 @@
|
|
7 |
function wp_email_capture_menus() {
|
8 |
$avatar = WP_EMAIL_CAPTURE_URL . '/images/wpemailcapture-dashicon.png';
|
9 |
//add_options_page( __( 'WP Email Capture Options', 'wp-email-capture' ), 'WP Email Capture', 'activate_plugins', 'wpemailcaptureoptions', 'wp_email_capture_options' );
|
10 |
-
add_menu_page(__('WP Email Capture'),__('WP Email Capture','
|
11 |
-
add_submenu_page('wpemailcapture',__('Settings'), __('Settings','
|
12 |
-
add_submenu_page('wpemailcapture',__('Help'), __('Help','
|
13 |
}
|
14 |
|
15 |
|
@@ -36,14 +36,25 @@ function wp_email_capture_dashboard() {
|
|
36 |
<a class="nav-tab" href="#credits" id="credits-tab"><?php _e( 'Credits', 'wp-email-capture' ); ?></a>
|
37 |
</h2>
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
<h2><?php _e( 'Welcome to WP Email Capture', 'wp-email-capture' ); ?></h2>
|
41 |
|
42 |
<h3><?php _e( 'New in 3.0 - Complete Rewrite', 'wp-email-capture' ); ?></h3>
|
43 |
|
44 |
-
<p><?php _e( 'Version 3.0 introduces a completely rewritten back end, making it faster for the average user, and allowing extensions to be added to the plugin. We also introduced two new translations and fixed a bug.', '
|
45 |
|
46 |
-
<p><a class="non-nav-tab" href="#changelog" id="changelog-tab"><?php _e( 'Read the changelog', '
|
47 |
|
48 |
<?php
|
49 |
|
@@ -54,33 +65,27 @@ function wp_email_capture_dashboard() {
|
|
54 |
<?php /* <h2><?php _e( 'Extensions', 'wp-email-capture' ); ?></h2> */ ?>
|
55 |
</div>
|
56 |
|
57 |
-
<div id="changelog" class="wpemailcapture-tab <?php
|
58 |
<h2><?php _e( 'Changelog', 'wp-email-capture' ); ?></h2>
|
59 |
<h3><?php _e( 'Code Refactorisation', 'wp-email-capture' ); ?></h3>
|
60 |
-
<p><?php _e( 'Version 3.0 introduces a completely rewritten back end, making it faster for the average user, and allowing extensions to be added to the plugin.', '
|
61 |
-
<h3><?php _e( '
|
62 |
<ul>
|
63 |
-
<li><?php
|
64 |
-
<li><?php
|
65 |
-
<li><?php
|
66 |
-
<li><?php _e( 'Added Welcome Screen', 'wp-email-capture' ); ?></li>
|
67 |
-
<li><?php _e( 'Added P tag around text widget introduction.', 'wp-email-capture' ); ?></li>
|
68 |
-
<li><?php _e( 'Added better help documentation within the plugin.', 'wp-email-capture' ); ?></li>
|
69 |
-
<li><?php _e( 'Added signup & confirm actions, to allow users to remove/add their own actions.', 'wp-email-capture' ); ?></li>
|
70 |
-
<li><?php _e( 'Added a filter to the display form, so it can be changed.', 'wp-email-capture' ); ?></li>
|
71 |
-
<li><?php echo sprintf( __( 'Add a filter for other subscription plugins (props <a href="%s" target="_blank">Dylan Kuhn</a>', 'wp-email-capture' ) , 'http://www.cyberhobo.net/' ); ?></li>
|
72 |
-
<li><?php _e( 'Changed menu structure', 'wp-email-capture' ); ?></li>
|
73 |
-
<li><?php _e( 'Made compatible with WordPress 4.3, with new widget structure.', 'wp-email-capture' ); ?></li>
|
74 |
-
<li><?php _e( 'Made compatible with new language packs.', 'wp-email-capture' ); ?></li>
|
75 |
</ul>
|
76 |
</div>
|
77 |
|
78 |
<div id="credits" class="wpemailcapture-tab">
|
79 |
<h2><?php _e( 'Credits', 'wp-email-capture' ); ?></h2>
|
80 |
<p><?php _e( 'This plugin has been helped and improved by the following people', 'wp-email-capture' ); ?></p>
|
|
|
|
|
|
|
81 |
<h3><?php _e('Translations', 'wp-email-capture' ); ?></h3>
|
82 |
<ul>
|
83 |
-
<li><?php echo sprintf( __( '<strong>French Translation:</strong> <a href="%s" target="_blank">Olivier</a> & <a href="%s" target="_blank">Andrew Patton</a> <a href="%s" target="_blank">(@andpatton)</a>.','
|
84 |
<li><?php echo sprintf( __( '<strong>German Translation:</strong> <a href="%s" target="_blank">Stephan</a>, <a href="%s" target="_blank">Marc Nilius</a> <a href="%s" target="_blank">(@libertello)</a> & Ov3rFly', 'wp-email-capture' ), 'http://www.computersniffer.com/', 'http://www.libertello.de/', 'http://twitter.com/libertello' ); ?></li>
|
85 |
<li><?php echo sprintf( __( '<strong>Brazilian Portugese Translation:</strong> <a href="%s" target="_blank">Nick Lima</a> <a href="%s" target="_blank">(@nick_linux)</a>', 'wp-email-capture' ), 'http://www.nicklima.com.br', 'http://twitter.com/nick_linux' ); ?></li>
|
86 |
<li><?php echo sprintf( __( '<strong>Dutch Translation:</strong> <a href="%s" target="_blank">Sander</a>', 'wp-email-capture' ), 'http://www.zanderz.net/' ); ?></li>
|
@@ -345,6 +350,4 @@ function wp_email_capture_premium_upsell() {
|
|
345 |
<p><?php _e( 'You also get premium support for a whole year!', 'wp-email-capture' ); ?></p>
|
346 |
<a href="http://wpemailcapture.com/premium/?utm_source=plugin-dashboard&utm_medium=plugin&utm_campaign=wpemailcapture" target="_blank"><button><?php _e( 'Click here to buy', 'wp-email-capture' ); ?></button></a>
|
347 |
<?php
|
348 |
-
} add_action( 'wp_email_capture_dashboard_premium_upsell', 'wp_email_capture_premium_upsell' );
|
349 |
-
|
350 |
-
?>
|
7 |
function wp_email_capture_menus() {
|
8 |
$avatar = WP_EMAIL_CAPTURE_URL . '/images/wpemailcapture-dashicon.png';
|
9 |
//add_options_page( __( 'WP Email Capture Options', 'wp-email-capture' ), 'WP Email Capture', 'activate_plugins', 'wpemailcaptureoptions', 'wp_email_capture_options' );
|
10 |
+
add_menu_page(__('WP Email Capture'),__('WP Email Capture','wp-email-capture'), 'activate_plugins', 'wpemailcapture', 'wp_email_capture_dashboard',$avatar,85);
|
11 |
+
add_submenu_page('wpemailcapture',__('Settings'), __('Settings','wp-email-capture'), 'activate_plugins', 'wpemailcapturefreesettings', 'wp_email_capture_free_options');
|
12 |
+
add_submenu_page('wpemailcapture',__('Help'), __('Help','wp-email-capture'), 'activate_plugins', 'wpemailcapturefreehelp', 'wp_email_capture_free_help');
|
13 |
}
|
14 |
|
15 |
|
36 |
<a class="nav-tab" href="#credits" id="credits-tab"><?php _e( 'Credits', 'wp-email-capture' ); ?></a>
|
37 |
</h2>
|
38 |
|
39 |
+
<?php
|
40 |
+
|
41 |
+
if ( array_key_exists( 'wpecupgrade', $_GET ) ) {
|
42 |
+
$activedashboard = "";
|
43 |
+
$activeupgrade = " active";
|
44 |
+
} else {
|
45 |
+
$activedashboard = " active";
|
46 |
+
$activeupgrade = "";
|
47 |
+
}
|
48 |
+
|
49 |
+
?>
|
50 |
+
<div id="dashboard" class="wpemailcapture-tab <?php echo $activedashboard; ?>">
|
51 |
<h2><?php _e( 'Welcome to WP Email Capture', 'wp-email-capture' ); ?></h2>
|
52 |
|
53 |
<h3><?php _e( 'New in 3.0 - Complete Rewrite', 'wp-email-capture' ); ?></h3>
|
54 |
|
55 |
+
<p><?php _e( 'Version 3.0 introduces a completely rewritten back end, making it faster for the average user, and allowing extensions to be added to the plugin. We also introduced two new translations and fixed a bug.', 'wp-email-capture'); ?></p>
|
56 |
|
57 |
+
<p><a class="non-nav-tab" href="#changelog" id="changelog-tab"><?php _e( 'Read the changelog', 'wp-email-capture'); ?></a></p>
|
58 |
|
59 |
<?php
|
60 |
|
65 |
<?php /* <h2><?php _e( 'Extensions', 'wp-email-capture' ); ?></h2> */ ?>
|
66 |
</div>
|
67 |
|
68 |
+
<div id="changelog" class="wpemailcapture-tab <?php echo $activeupgrade; ?>">
|
69 |
<h2><?php _e( 'Changelog', 'wp-email-capture' ); ?></h2>
|
70 |
<h3><?php _e( 'Code Refactorisation', 'wp-email-capture' ); ?></h3>
|
71 |
+
<p><?php _e( 'Version 3.0 introduces a completely rewritten back end, making it faster for the average user, and allowing extensions to be added to the plugin.', 'wp-email-capture'); ?></p>
|
72 |
+
<h3><?php _e( '3.1 Changes', 'wp-email-capture' ); ?></h3>
|
73 |
<ul>
|
74 |
+
<li><?php echo sprintf( __( 'Removed the default widget title should widget text be blank (props <a href="%s" target="_blank">Hassan Raza</a>)','wp-email-capture' ), 'http://hassan-raza.com/' ); ?></li>
|
75 |
+
<li><?php _e( 'Changed word from "Update" to "Upgrade" for large lists as it was confusing people.','wp-email-capture' ); ?></li>
|
76 |
+
<li><?php _e( 'Changed to new Text Domain as per WordPress new internationalisation integration (wp-email-capture).', 'wp-email-capture' ); ?></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
</ul>
|
78 |
</div>
|
79 |
|
80 |
<div id="credits" class="wpemailcapture-tab">
|
81 |
<h2><?php _e( 'Credits', 'wp-email-capture' ); ?></h2>
|
82 |
<p><?php _e( 'This plugin has been helped and improved by the following people', 'wp-email-capture' ); ?></p>
|
83 |
+
<ul>
|
84 |
+
<li><?php echo sprintf( __( '<strong>3.1:</strong> <a href="%s" target="_blank">Hassan Raza</a>','wp-email-capture' ), 'http://hassan-raza.com/' ); ?></li>
|
85 |
+
</ul>
|
86 |
<h3><?php _e('Translations', 'wp-email-capture' ); ?></h3>
|
87 |
<ul>
|
88 |
+
<li><?php echo sprintf( __( '<strong>French Translation:</strong> <a href="%s" target="_blank">Olivier</a> & <a href="%s" target="_blank">Andrew Patton</a> <a href="%s" target="_blank">(@andpatton)</a>.','wp-email-capture' ), 'http://www.ticket-system.net/', 'http://www.acusti.ca/', 'http://twitter.com/andpatton' ); ?></li>
|
89 |
<li><?php echo sprintf( __( '<strong>German Translation:</strong> <a href="%s" target="_blank">Stephan</a>, <a href="%s" target="_blank">Marc Nilius</a> <a href="%s" target="_blank">(@libertello)</a> & Ov3rFly', 'wp-email-capture' ), 'http://www.computersniffer.com/', 'http://www.libertello.de/', 'http://twitter.com/libertello' ); ?></li>
|
90 |
<li><?php echo sprintf( __( '<strong>Brazilian Portugese Translation:</strong> <a href="%s" target="_blank">Nick Lima</a> <a href="%s" target="_blank">(@nick_linux)</a>', 'wp-email-capture' ), 'http://www.nicklima.com.br', 'http://twitter.com/nick_linux' ); ?></li>
|
91 |
<li><?php echo sprintf( __( '<strong>Dutch Translation:</strong> <a href="%s" target="_blank">Sander</a>', 'wp-email-capture' ), 'http://www.zanderz.net/' ); ?></li>
|
350 |
<p><?php _e( 'You also get premium support for a whole year!', 'wp-email-capture' ); ?></p>
|
351 |
<a href="http://wpemailcapture.com/premium/?utm_source=plugin-dashboard&utm_medium=plugin&utm_campaign=wpemailcapture" target="_blank"><button><?php _e( 'Click here to buy', 'wp-email-capture' ); ?></button></a>
|
352 |
<?php
|
353 |
+
} add_action( 'wp_email_capture_dashboard_premium_upsell', 'wp_email_capture_premium_upsell' );
|
|
|
|
inc/process.php
CHANGED
@@ -151,7 +151,7 @@ function wp_email_capture_signup() {
|
|
151 |
$subject = get_option( 'wp_email_capture_subject' );
|
152 |
|
153 |
if ( $subject == "" ) {
|
154 |
-
$subject = __( "Sign Up For Our Newsletter", "
|
155 |
}
|
156 |
|
157 |
// From
|
@@ -177,7 +177,7 @@ function wp_email_capture_signup() {
|
|
177 |
$message.= get_option( 'wp_email_capture_body' ) . "\n\n";
|
178 |
|
179 |
if ( $message == "\n\n" ) {
|
180 |
-
$message .= __( "Thank you for signing up for our newsletter, please click the link below to confirm your subscription", "
|
181 |
}
|
182 |
|
183 |
$message .= $siteurl ."?wp_email_confirm=1&wp_email_capture_passkey=$confirm_code";
|
@@ -318,4 +318,4 @@ function wp_email_capture_send_email_default( $to, $subject, $message, $header )
|
|
318 |
if ( $sendmail ) { $addedfield = "Email Sent!"; } else { $addedfield = "Email Not Sent"; }
|
319 |
|
320 |
return $sendmail;
|
321 |
-
}
|
151 |
$subject = get_option( 'wp_email_capture_subject' );
|
152 |
|
153 |
if ( $subject == "" ) {
|
154 |
+
$subject = __( "Sign Up For Our Newsletter", "wp-email-capture" );
|
155 |
}
|
156 |
|
157 |
// From
|
177 |
$message.= get_option( 'wp_email_capture_body' ) . "\n\n";
|
178 |
|
179 |
if ( $message == "\n\n" ) {
|
180 |
+
$message .= __( "Thank you for signing up for our newsletter, please click the link below to confirm your subscription", "wp-email-capture" ) . "\n\n";
|
181 |
}
|
182 |
|
183 |
$message .= $siteurl ."?wp_email_confirm=1&wp_email_capture_passkey=$confirm_code";
|
318 |
if ( $sendmail ) { $addedfield = "Email Sent!"; } else { $addedfield = "Email Not Sent"; }
|
319 |
|
320 |
return $sendmail;
|
321 |
+
}
|
inc/security.php
CHANGED
@@ -57,8 +57,4 @@ function wp_email_injection_test($str = "") {
|
|
57 |
|
58 |
return preg_replace($tests, "", $str);
|
59 |
|
60 |
-
}
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
?>
|
57 |
|
58 |
return preg_replace($tests, "", $str);
|
59 |
|
60 |
+
}
|
|
|
|
|
|
|
|
inc/tabledata.php
CHANGED
@@ -31,7 +31,7 @@ function wp_email_capture_writetable( $limit = 0, $header = '' ) {
|
|
31 |
|
32 |
}
|
33 |
|
34 |
-
|
35 |
|
36 |
$tabletoshow .= '
|
37 |
|
@@ -97,5 +97,4 @@ function wp_email_capture_deleteid( $id ) {
|
|
97 |
*/
|
98 |
do_action( 'wp_email_capture_after_delete_email_address', $id );
|
99 |
|
100 |
-
}
|
101 |
-
?>
|
31 |
|
32 |
}
|
33 |
|
34 |
+
$tabletoshow .= $header;
|
35 |
|
36 |
$tabletoshow .= '
|
37 |
|
97 |
*/
|
98 |
do_action( 'wp_email_capture_after_delete_email_address', $id );
|
99 |
|
100 |
+
}
|
|
inc/tempdata.php
CHANGED
@@ -47,6 +47,4 @@ function wp_email_capture_count_temp() {
|
|
47 |
|
48 |
return $temp_members;
|
49 |
|
50 |
-
}
|
51 |
-
|
52 |
-
?>
|
47 |
|
48 |
return $temp_members;
|
49 |
|
50 |
+
}
|
|
|
|
inc/tracking.php
CHANGED
@@ -166,4 +166,4 @@ function wpec_start_tracking() {
|
|
166 |
*/
|
167 |
function wpec_do_tracking() {
|
168 |
do_action('wpec_tracking');
|
169 |
-
}
|
166 |
*/
|
167 |
function wpec_do_tracking() {
|
168 |
do_action('wpec_tracking');
|
169 |
+
}
|
inc/widget.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
class wp_email_capture_widget_class extends WP_Widget {
|
7 |
|
8 |
public function __construct() {
|
9 |
-
parent::__construct('wp_email_capture_widget_class', __('WP Email Capture','
|
10 |
}
|
11 |
|
12 |
|
@@ -19,14 +19,14 @@ class wp_email_capture_widget_class extends WP_Widget {
|
|
19 |
extract($args);
|
20 |
extract($args, EXTR_SKIP);
|
21 |
|
22 |
-
$title =
|
23 |
-
$text =
|
24 |
|
25 |
echo $before_widget;
|
26 |
|
27 |
-
echo $before_title . $title . $after_title;
|
28 |
|
29 |
-
echo '<div class="textwidget"><p>'.$text.'</p></div>';
|
30 |
|
31 |
wp_email_capture_form();
|
32 |
|
@@ -46,15 +46,19 @@ class wp_email_capture_widget_class extends WP_Widget {
|
|
46 |
* admin control form
|
47 |
*/
|
48 |
function form($instance) {
|
49 |
-
$default = array(
|
|
|
|
|
|
|
|
|
50 |
$instance = wp_parse_args( (array) $instance, $default );
|
51 |
|
52 |
$title_id = $this->get_field_id('widget_title');
|
53 |
$title_name = $this->get_field_name('widget_title');
|
54 |
$text_id = $this->get_field_id('widget_text');
|
55 |
$text_name = $this->get_field_name('widget_text');
|
56 |
-
echo "\r\n".'<p><label for="'.$title_id.'">'.__('Widget title:','
|
57 |
-
echo "\r\n".'<p><label for="'.$text_id.'">'.__('Widget text:','
|
58 |
|
59 |
}
|
60 |
|
@@ -65,7 +69,4 @@ class wp_email_capture_widget_class extends WP_Widget {
|
|
65 |
function wp_email_capture_widget_init(){
|
66 |
// curl need to be installed
|
67 |
register_widget('wp_email_capture_widget_class');
|
68 |
-
}
|
69 |
-
|
70 |
-
|
71 |
-
?>
|
6 |
class wp_email_capture_widget_class extends WP_Widget {
|
7 |
|
8 |
public function __construct() {
|
9 |
+
parent::__construct('wp_email_capture_widget_class', __('WP Email Capture','wp-email-capture'), array('description' =>__('Widget for WP Email Capture','WPEC')));
|
10 |
}
|
11 |
|
12 |
|
19 |
extract($args);
|
20 |
extract($args, EXTR_SKIP);
|
21 |
|
22 |
+
$title = apply_filters('widget_title', $instance['widget_title']);
|
23 |
+
$text = $instance['widget_text'];
|
24 |
|
25 |
echo $before_widget;
|
26 |
|
27 |
+
echo !empty($title) ? $before_title . $title . $after_title : '';
|
28 |
|
29 |
+
echo !empty($text) ? '<div class="textwidget"><p>'.$text.'</p></div>' : '';
|
30 |
|
31 |
wp_email_capture_form();
|
32 |
|
46 |
* admin control form
|
47 |
*/
|
48 |
function form($instance) {
|
49 |
+
$default = array(
|
50 |
+
'widget_title' => __('Subscribe!','wp-email-capture'),
|
51 |
+
'widget_text' => __('Subscribe to my blog for updates','wp-email-capture')
|
52 |
+
);
|
53 |
+
|
54 |
$instance = wp_parse_args( (array) $instance, $default );
|
55 |
|
56 |
$title_id = $this->get_field_id('widget_title');
|
57 |
$title_name = $this->get_field_name('widget_title');
|
58 |
$text_id = $this->get_field_id('widget_text');
|
59 |
$text_name = $this->get_field_name('widget_text');
|
60 |
+
echo "\r\n".'<p><label for="'.$title_id.'">'.__('Widget title:','wp-email-capture').': <input type="text" class="widefat" id="'.$title_id.'" name="'.$title_name.'" value="'.esc_attr( $instance['widget_title'] ).'" /><label></p>';
|
61 |
+
echo "\r\n".'<p><label for="'.$text_id.'">'.__('Widget text:','wp-email-capture').': <input type="text" class="widefat" id="'.$text_id.'" name="'.$text_name .'" value="'.esc_attr( $instance['widget_text'] ).'" /><label></p>';
|
62 |
|
63 |
}
|
64 |
|
69 |
function wp_email_capture_widget_init(){
|
70 |
// curl need to be installed
|
71 |
register_widget('wp_email_capture_widget_class');
|
72 |
+
}
|
|
|
|
|
|
languages/{WPEC-de_DE.mo → wp-email-capture-de_DE.mo}
RENAMED
File without changes
|
languages/{WPEC-de_DE.po → wp-email-capture-de_DE.po}
RENAMED
File without changes
|
languages/{WPEC-es_ES.mo → wp-email-capture-es_ES.mo}
RENAMED
File without changes
|
languages/{WPEC-es_ES.po → wp-email-capture-es_ES.po}
RENAMED
File without changes
|
languages/{WPEC-fr_FR.mo → wp-email-capture-fr_FR.mo}
RENAMED
File without changes
|
languages/{WPEC-fr_FR.po → wp-email-capture-fr_FR.po}
RENAMED
File without changes
|
languages/wp-email-capture-hr.mo
ADDED
Binary file
|
languages/wp-email-capture-hr.po
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
|
languages/{WPEC-hu_HU.mo → wp-email-capture-hu_HU.mo}
RENAMED
File without changes
|
languages/{WPEC-hu_HU.po → wp-email-capture-hu_HU.po}
RENAMED
File without changes
|
languages/{WPEC-it_IT.mo → wp-email-capture-it_IT.mo}
RENAMED
File without changes
|
languages/{WPEC-it_IT.po → wp-email-capture-it_IT.po}
RENAMED
File without changes
|
languages/{WPEC-nl_NL.mo → wp-email-capture-nl_NL.mo}
RENAMED
File without changes
|
languages/{WPEC-nl_NL.po → wp-email-capture-nl_NL.po}
RENAMED
File without changes
|
languages/{WPEC-pt_BR.mo → wp-email-capture-pt_BR.mo}
RENAMED
File without changes
|
languages/{WPEC-pt_BR.po → wp-email-capture-pt_BR.po}
RENAMED
File without changes
|
languages/{WPEC-sr_RS.mo → wp-email-capture-sr_RS.mo}
RENAMED
File without changes
|
languages/{WPEC-sr_RS.po → wp-email-capture-sr_RS.po}
RENAMED
File without changes
|
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: 4.4
|
5 |
-
Version: 3.
|
6 |
-
Stable tag: 3.
|
7 |
Contributors: rhyswynne
|
8 |
Donate link: http://wpemailcapture.com/premium/
|
9 |
|
@@ -159,6 +159,25 @@ 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.0 =
|
163 |
* Massive refactor of code, to help improve it.
|
164 |
* Fixed a bug that the "Hide Notice" dismissive now works.
|
2 |
Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
|
3 |
Requires at least: 3.0
|
4 |
Tested up to: 4.4
|
5 |
+
Version: 3.1.1
|
6 |
+
Stable tag: 3.1.1
|
7 |
Contributors: rhyswynne
|
8 |
Donate link: http://wpemailcapture.com/premium/
|
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.1.1 =
|
163 |
+
* Removed a redundant file that, if hacked in, could lead to an injection of content. This file was *not* called normally but in order to remove it upgrade to this version. ** Update strongly required **
|
164 |
+
* Fixed a bug which saw a notice appear of a missing option on the upgrade and dashboard page.
|
165 |
+
* Removed a double header in Dashboard widget (props Ove3rfly).
|
166 |
+
* Correct textdomain used in some files (props Ov3rfly).
|
167 |
+
* Removed all PHP closing tags through the site (props Ov3rfly).
|
168 |
+
|
169 |
+
= 3.1 =
|
170 |
+
* Removed the default widget title should widget text be blank (props [Hassan Raza](http://hassan-raza.com/)).
|
171 |
+
* Changed word from "Update" to "Upgrade" for large lists as it was confusing people.
|
172 |
+
* Changed to new Text Domain as per WordPress' new internationalisation integration (wp-email-capture).
|
173 |
+
|
174 |
+
= 3.0.2 =
|
175 |
+
* Fixed an error with "Error: " displaying on the free version.
|
176 |
+
|
177 |
+
= 3.0.1 =
|
178 |
+
* Fixed a minor security issue in the display.php
|
179 |
+
* Removed Tracking (for now)
|
180 |
+
|
181 |
= 3.0 =
|
182 |
* Massive refactor of code, to help improve it.
|
183 |
* Fixed a bug that the "Hide Notice" dismissive now works.
|
wp-email-capture.php
CHANGED
@@ -8,7 +8,7 @@ Plugin URI: http://wpemailcapture.com/?utm_source=plugin-link&utm_medium=plugin&
|
|
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.
|
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.
|
30 |
|
31 |
require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
|
32 |
|
@@ -49,17 +49,17 @@ function wp_email_capture_plugins_loaded() {
|
|
49 |
add_action( 'admin_init', 'wp_email_capture_options_process' );
|
50 |
add_action( 'wp_dashboard_setup', 'wp_email_capture_add_dashboard_widgets' );
|
51 |
add_action( 'admin_menu', 'wp_email_capture_menus', 10 );
|
52 |
-
add_action( 'admin_notices', 'wp_email_capture_admin_notice' );
|
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' );
|
@@ -74,6 +74,3 @@ function wp_email_capture_plugins_loaded() {
|
|
74 |
// Activation functionality
|
75 |
add_action( 'plugins_loaded', 'wp_email_capture_plugins_loaded', 10 );
|
76 |
register_activation_hook( __FILE__, 'wp_email_capture_install' );
|
77 |
-
|
78 |
-
|
79 |
-
?>
|
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.1
|
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.1.1' );
|
30 |
|
31 |
require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
|
32 |
|
49 |
add_action( 'admin_init', 'wp_email_capture_options_process' );
|
50 |
add_action( 'wp_dashboard_setup', 'wp_email_capture_add_dashboard_widgets' );
|
51 |
add_action( 'admin_menu', 'wp_email_capture_menus', 10 );
|
52 |
+
//add_action( 'admin_notices', 'wp_email_capture_admin_notice' );
|
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' );
|
74 |
// Activation functionality
|
75 |
add_action( 'plugins_loaded', 'wp_email_capture_plugins_loaded', 10 );
|
76 |
register_activation_hook( __FILE__, 'wp_email_capture_install' );
|
|
|
|
|
|