Version Description
- Added custom CSS field to customize the forms appearance
- Added codemirror for CSS edit
- Added plugin version to style link
- Added plugin version to script link
- Corrected a tag in newsletter widget minimal
- Added line height on form fields
- Changed CSS class prefixes to tnp
- Fixed a divide by zero on diagnostic panel
- Improved the collection of emails sending speed data
- Fixed a bug when adding a new subscriber from the admin panel
Download this release
Release Info
Developer | webagile |
Plugin | Newsletter |
Version | 4.7.3 |
Comparing to | |
See all releases |
Code changes from version 4.7.2 to 4.7.3
- plugin.php +2 -2
- readme.txt +3 -2
- subscription/style.css +63 -63
- subscription/validate.js +1 -1
- users/new.php +3 -1
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: http://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
-
Version: 4.7.
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: http://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
@@ -14,7 +14,7 @@
|
|
14 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
-
define('NEWSLETTER_VERSION', '4.7.
|
18 |
|
19 |
global $wpdb, $newsletter;
|
20 |
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: http://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
+
Version: 4.7.3
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: http://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
14 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
+
define('NEWSLETTER_VERSION', '4.7.3');
|
18 |
|
19 |
global $wpdb, $newsletter;
|
20 |
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Newsletter ===
|
2 |
Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
|
3 |
Requires at least: 3.4.0
|
4 |
-
Tested up to: 4.
|
5 |
-
Stable tag: 4.7.
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
@@ -88,6 +88,7 @@ Thank you, The Newsletter Team
|
|
88 |
* Changed CSS class prefixes to tnp
|
89 |
* Fixed a divide by zero on diagnostic panel
|
90 |
* Improved the collection of emails sending speed data
|
|
|
91 |
|
92 |
= 4.7.2 =
|
93 |
|
1 |
=== Newsletter ===
|
2 |
Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
|
3 |
Requires at least: 3.4.0
|
4 |
+
Tested up to: 4.7.0
|
5 |
+
Stable tag: 4.7.3
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
88 |
* Changed CSS class prefixes to tnp
|
89 |
* Fixed a divide by zero on diagnostic panel
|
90 |
* Improved the collection of emails sending speed data
|
91 |
+
* Fixed a bug when adding a new subscriber from the admin panel
|
92 |
|
93 |
= 4.7.2 =
|
94 |
|
subscription/style.css
CHANGED
@@ -9,14 +9,14 @@
|
|
9 |
/* Generic field wrapper */
|
10 |
.tnp-subscription div.tnp-field {
|
11 |
margin-bottom: 10px;
|
12 |
-
border: 0
|
13 |
-
padding: 0
|
14 |
}
|
15 |
|
16 |
.tnp-subscription label {
|
17 |
display: block;
|
18 |
color: inherit;
|
19 |
-
font-size: 14px
|
20 |
font-weight: 700;
|
21 |
line-height: normal;
|
22 |
padding: 5px;
|
@@ -25,15 +25,15 @@
|
|
25 |
|
26 |
.tnp-subscription input[type=text], .tnp-subscription input[type=email], .tnp-subscription input[type=submit], .tnp-subscription select {
|
27 |
width: 100%;
|
28 |
-
padding: 10px
|
29 |
display: block;
|
30 |
-
border: 1px
|
31 |
border-color: #ddd;
|
32 |
-
background-color: #f4f4f4
|
33 |
color: #444;
|
34 |
font-size: 14px;
|
35 |
-
margin: 0
|
36 |
-
line-height: normal
|
37 |
}
|
38 |
|
39 |
.tnp-subscription input[type=checkbox], .tnp-widget input[type=radio] {
|
@@ -43,12 +43,12 @@
|
|
43 |
|
44 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
45 |
.tnp-subscription select option {
|
46 |
-
margin-right: 10px
|
47 |
}
|
48 |
|
49 |
.tnp-subscription input.tnp-submit {
|
50 |
-
background-color: #444
|
51 |
-
color: #fff
|
52 |
width: auto;
|
53 |
}
|
54 |
|
@@ -67,26 +67,26 @@
|
|
67 |
|
68 |
.tnp-profile .tnp-field {
|
69 |
margin-bottom: 10px;
|
70 |
-
border: 0
|
71 |
-
padding: 0
|
72 |
}
|
73 |
|
74 |
.tnp-profile label {
|
75 |
display: block;
|
76 |
color: #333;
|
77 |
-
font-size: 14px
|
78 |
}
|
79 |
|
80 |
.tnp-profile input[type=text], .tnp-profile input[type=email], .tnp-profile input[type=submit], .tnp-profile select {
|
81 |
-
width: 100
|
82 |
-
padding: 10px
|
83 |
display: block;
|
84 |
-
border: 1px
|
85 |
border-color: #ddd;
|
86 |
-
background-color: #f4f4f4
|
87 |
color: #444;
|
88 |
font-size: 14px;
|
89 |
-
margin: 0
|
90 |
line-height: normal;
|
91 |
}
|
92 |
|
@@ -101,12 +101,12 @@
|
|
101 |
|
102 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
103 |
.tnp-profile select option {
|
104 |
-
margin-right: 10px
|
105 |
}
|
106 |
|
107 |
.tnp-profile input[type=submit] {
|
108 |
-
background-color: #444
|
109 |
-
color: #fff
|
110 |
}
|
111 |
|
112 |
|
@@ -118,23 +118,23 @@
|
|
118 |
|
119 |
.tnp-widget .tnp-field {
|
120 |
margin-bottom: 10px;
|
121 |
-
border: 0
|
122 |
-
padding: 0
|
123 |
}
|
124 |
|
125 |
.tnp-widget label {
|
126 |
display: block;
|
127 |
color: inherit;
|
128 |
-
font-size: 14px
|
129 |
}
|
130 |
|
131 |
.tnp-widget input[type=text], .tnp-widget input[type=email], .tnp-widget input[type=submit], .tnp-widget select {
|
132 |
-
width: 100
|
133 |
-
padding: 10px
|
134 |
display: block;
|
135 |
-
border: 1px solid #ddd
|
136 |
-
border-color: #ddd
|
137 |
-
background-color: #f4f4f4
|
138 |
color: #444;
|
139 |
font-size: 14px;
|
140 |
line-height: normal;
|
@@ -147,16 +147,16 @@
|
|
147 |
|
148 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
149 |
.tnp-widget select option {
|
150 |
-
margin-right: 10px
|
151 |
}
|
152 |
|
153 |
.tnp-widget input.tnp-submit {
|
154 |
-
background-color: #444
|
155 |
-
color: #fff
|
156 |
}
|
157 |
|
158 |
.tnp-field input[type="submit"] {
|
159 |
-
position: inherit
|
160 |
}
|
161 |
|
162 |
.tnp-field label {
|
@@ -170,35 +170,35 @@
|
|
170 |
}
|
171 |
|
172 |
.tnp-widget-minimal form {
|
173 |
-
margin: 0
|
174 |
-
padding: 0
|
175 |
-
border: 0
|
176 |
}
|
177 |
|
178 |
.tnp-widget-minimal input.tnp-email {
|
179 |
-
width:
|
180 |
-
box-sizing: border-box
|
181 |
-
padding: 10px
|
182 |
display: inline-block;
|
183 |
-
border: 1px
|
184 |
border-color: #ddd;
|
185 |
-
background-color: #f4f4f4
|
186 |
color: #444;
|
187 |
font-size: 14px;
|
188 |
}
|
189 |
|
190 |
.tnp-widget-minimal input.tnp-submit {
|
191 |
-
width:
|
192 |
-
box-sizing: border-box
|
193 |
-
padding: 10px
|
194 |
display: inline-block;
|
195 |
-
border: 1px
|
196 |
border-color: #ddd;
|
197 |
-
background-color: #444
|
198 |
-
color: #fff
|
199 |
font-size: 14px;
|
200 |
line-height: normal;
|
201 |
-
border-radius: 0px
|
202 |
}
|
203 |
|
204 |
|
@@ -207,33 +207,33 @@
|
|
207 |
}
|
208 |
|
209 |
.tnp-subscription-minimal form {
|
210 |
-
margin: 0
|
211 |
-
padding: 0
|
212 |
-
border: 0
|
213 |
}
|
214 |
|
215 |
.tnp-subscription-minimal input.tnp-email {
|
216 |
-
width: 70
|
217 |
max-width: 300px;
|
218 |
-
box-sizing: border-box
|
219 |
-
padding: 10px
|
220 |
display: inline-block;
|
221 |
-
border: 1px
|
222 |
border-color: #ddd;
|
223 |
-
background-color: #f4f4f4
|
224 |
color: #444;
|
225 |
font-size: 14px;
|
226 |
}
|
227 |
|
228 |
.tnp-subscription-minimal input.tnp-submit {
|
229 |
-
width: 29
|
230 |
-
box-sizing: border-box
|
231 |
-
padding: 10px
|
232 |
display: inline-block;
|
233 |
-
border: 1px
|
234 |
border-color: #ddd;
|
235 |
-
background-color: #444
|
236 |
-
color: #fff
|
237 |
font-size: 14px;
|
238 |
}
|
239 |
|
9 |
/* Generic field wrapper */
|
10 |
.tnp-subscription div.tnp-field {
|
11 |
margin-bottom: 10px;
|
12 |
+
border: 0;
|
13 |
+
padding: 0;
|
14 |
}
|
15 |
|
16 |
.tnp-subscription label {
|
17 |
display: block;
|
18 |
color: inherit;
|
19 |
+
font-size: 14px;
|
20 |
font-weight: 700;
|
21 |
line-height: normal;
|
22 |
padding: 5px;
|
25 |
|
26 |
.tnp-subscription input[type=text], .tnp-subscription input[type=email], .tnp-subscription input[type=submit], .tnp-subscription select {
|
27 |
width: 100%;
|
28 |
+
padding: 10px;
|
29 |
display: block;
|
30 |
+
border: 1px;
|
31 |
border-color: #ddd;
|
32 |
+
background-color: #f4f4f4;
|
33 |
color: #444;
|
34 |
font-size: 14px;
|
35 |
+
margin: 0;
|
36 |
+
line-height: normal;
|
37 |
}
|
38 |
|
39 |
.tnp-subscription input[type=checkbox], .tnp-widget input[type=radio] {
|
43 |
|
44 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
45 |
.tnp-subscription select option {
|
46 |
+
margin-right: 10px;
|
47 |
}
|
48 |
|
49 |
.tnp-subscription input.tnp-submit {
|
50 |
+
background-color: #444;
|
51 |
+
color: #fff;
|
52 |
width: auto;
|
53 |
}
|
54 |
|
67 |
|
68 |
.tnp-profile .tnp-field {
|
69 |
margin-bottom: 10px;
|
70 |
+
border: 0;
|
71 |
+
padding: 0;
|
72 |
}
|
73 |
|
74 |
.tnp-profile label {
|
75 |
display: block;
|
76 |
color: #333;
|
77 |
+
font-size: 14px;
|
78 |
}
|
79 |
|
80 |
.tnp-profile input[type=text], .tnp-profile input[type=email], .tnp-profile input[type=submit], .tnp-profile select {
|
81 |
+
width: 100%;
|
82 |
+
padding: 10px;
|
83 |
display: block;
|
84 |
+
border: 1px;
|
85 |
border-color: #ddd;
|
86 |
+
background-color: #f4f4f4;
|
87 |
color: #444;
|
88 |
font-size: 14px;
|
89 |
+
margin: 0;
|
90 |
line-height: normal;
|
91 |
}
|
92 |
|
101 |
|
102 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
103 |
.tnp-profile select option {
|
104 |
+
margin-right: 10px;
|
105 |
}
|
106 |
|
107 |
.tnp-profile input[type=submit] {
|
108 |
+
background-color: #444;
|
109 |
+
color: #fff;
|
110 |
}
|
111 |
|
112 |
|
118 |
|
119 |
.tnp-widget .tnp-field {
|
120 |
margin-bottom: 10px;
|
121 |
+
border: 0;
|
122 |
+
padding: 0;
|
123 |
}
|
124 |
|
125 |
.tnp-widget label {
|
126 |
display: block;
|
127 |
color: inherit;
|
128 |
+
font-size: 14px;
|
129 |
}
|
130 |
|
131 |
.tnp-widget input[type=text], .tnp-widget input[type=email], .tnp-widget input[type=submit], .tnp-widget select {
|
132 |
+
width: 100%;
|
133 |
+
padding: 10px;
|
134 |
display: block;
|
135 |
+
border: 1px solid #ddd ;
|
136 |
+
border-color: #ddd;
|
137 |
+
background-color: #f4f4f4;
|
138 |
color: #444;
|
139 |
font-size: 14px;
|
140 |
line-height: normal;
|
147 |
|
148 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
149 |
.tnp-widget select option {
|
150 |
+
margin-right: 10px;
|
151 |
}
|
152 |
|
153 |
.tnp-widget input.tnp-submit {
|
154 |
+
background-color: #444;
|
155 |
+
color: #fff;
|
156 |
}
|
157 |
|
158 |
.tnp-field input[type="submit"] {
|
159 |
+
position: inherit;
|
160 |
}
|
161 |
|
162 |
.tnp-field label {
|
170 |
}
|
171 |
|
172 |
.tnp-widget-minimal form {
|
173 |
+
margin: 0;
|
174 |
+
padding: 0;
|
175 |
+
border: 0;
|
176 |
}
|
177 |
|
178 |
.tnp-widget-minimal input.tnp-email {
|
179 |
+
width: 100%;
|
180 |
+
box-sizing: border-box;
|
181 |
+
padding: 10px;
|
182 |
display: inline-block;
|
183 |
+
border: 1px;
|
184 |
border-color: #ddd;
|
185 |
+
background-color: #f4f4f4;
|
186 |
color: #444;
|
187 |
font-size: 14px;
|
188 |
}
|
189 |
|
190 |
.tnp-widget-minimal input.tnp-submit {
|
191 |
+
width: 100%;
|
192 |
+
box-sizing: border-box;
|
193 |
+
padding: 10px;
|
194 |
display: inline-block;
|
195 |
+
border: 1px;
|
196 |
border-color: #ddd;
|
197 |
+
background-color: #444;
|
198 |
+
color: #fff;
|
199 |
font-size: 14px;
|
200 |
line-height: normal;
|
201 |
+
border-radius: 0px;
|
202 |
}
|
203 |
|
204 |
|
207 |
}
|
208 |
|
209 |
.tnp-subscription-minimal form {
|
210 |
+
margin: 0;
|
211 |
+
padding: 0;
|
212 |
+
border: 0;
|
213 |
}
|
214 |
|
215 |
.tnp-subscription-minimal input.tnp-email {
|
216 |
+
width: 70%;
|
217 |
max-width: 300px;
|
218 |
+
box-sizing: border-box;
|
219 |
+
padding: 10px;
|
220 |
display: inline-block;
|
221 |
+
border: 1px;
|
222 |
border-color: #ddd;
|
223 |
+
background-color: #f4f4f4;
|
224 |
color: #444;
|
225 |
font-size: 14px;
|
226 |
}
|
227 |
|
228 |
.tnp-subscription-minimal input.tnp-submit {
|
229 |
+
width: 29%;
|
230 |
+
box-sizing: border-box;
|
231 |
+
padding: 10px;
|
232 |
display: inline-block;
|
233 |
+
border: 1px;
|
234 |
border-color: #ddd;
|
235 |
+
background-color: #444;
|
236 |
+
color: #fff;
|
237 |
font-size: 14px;
|
238 |
}
|
239 |
|
subscription/validate.js
CHANGED
@@ -5,7 +5,7 @@ function newsletter_check_field(field, message) {
|
|
5 |
return false;
|
6 |
}
|
7 |
|
8 |
-
if (field.required !== undefined && field.value == "") {
|
9 |
alert(message);
|
10 |
return false;
|
11 |
}
|
5 |
return false;
|
6 |
}
|
7 |
|
8 |
+
if (field.required !== undefined && field.required !== false && field.value == "") {
|
9 |
alert(message);
|
10 |
return false;
|
11 |
}
|
users/new.php
CHANGED
@@ -14,7 +14,9 @@ if ($controls->is_action('save')) {
|
|
14 |
if ($user === false) {
|
15 |
$controls->errors = 'This email already exists.';
|
16 |
} else {
|
17 |
-
|
|
|
|
|
18 |
return;
|
19 |
}
|
20 |
}
|
14 |
if ($user === false) {
|
15 |
$controls->errors = 'This email already exists.';
|
16 |
} else {
|
17 |
+
echo '<script>';
|
18 |
+
echo 'location.href="' . $module->get_admin_page_url('edit') . '&id=' . $user->id . '"';
|
19 |
+
echo '</script>';
|
20 |
return;
|
21 |
}
|
22 |
}
|