Version Description
- Fixed the multiple dedicated page creation on Welcome screen
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 5.5.2 |
Comparing to | |
See all releases |
Code changes from version 5.5.1 to 5.5.2
- main/welcome.php +6 -1
- plugin.php +2 -2
- readme.txt +5 -1
- subscription/profile.php +15 -10
main/welcome.php
CHANGED
@@ -56,9 +56,12 @@ $profile_options = NewsletterSubscription::instance()->get_options('profile');
|
|
56 |
$main_options = Newsletter::instance()->get_options();
|
57 |
$subscription_options = NewsletterSubscription::instance()->get_options();
|
58 |
|
59 |
-
$
|
|
|
|
|
60 |
|
61 |
if (!$page_exists) {
|
|
|
62 |
// Page creation
|
63 |
$page = array();
|
64 |
$page['post_title'] = 'Newsletter';
|
@@ -76,6 +79,8 @@ if (!$page_exists) {
|
|
76 |
Newsletter::instance()->save_options($main_options);
|
77 |
$main_options = Newsletter::instance()->get_options();
|
78 |
$page_exists = true;
|
|
|
|
|
79 |
}
|
80 |
?>
|
81 |
|
56 |
$main_options = Newsletter::instance()->get_options();
|
57 |
$subscription_options = NewsletterSubscription::instance()->get_options();
|
58 |
|
59 |
+
$logger = Newsletter::instance()->logger;
|
60 |
+
|
61 |
+
$page_exists = !empty($main_options['page']) && get_permalink($main_options['page']);
|
62 |
|
63 |
if (!$page_exists) {
|
64 |
+
$logger->info('Dedicated page creation');
|
65 |
// Page creation
|
66 |
$page = array();
|
67 |
$page['post_title'] = 'Newsletter';
|
79 |
Newsletter::instance()->save_options($main_options);
|
80 |
$main_options = Newsletter::instance()->get_options();
|
81 |
$page_exists = true;
|
82 |
+
} else {
|
83 |
+
$logger->info('Dedicated page already exists');
|
84 |
}
|
85 |
?>
|
86 |
|
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://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="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
-
Version: 5.5.
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://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', '5.5.
|
18 |
|
19 |
global $newsletter, $wpdb;
|
20 |
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://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="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
+
Version: 5.5.2
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://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', '5.5.2');
|
18 |
|
19 |
global $newsletter, $wpdb;
|
20 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
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.9.6
|
5 |
-
Stable tag: 5.5.
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
@@ -102,6 +102,10 @@ Thank you, The Newsletter Team
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
105 |
= 5.5.1 =
|
106 |
|
107 |
* Fixed few debug notices
|
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.9.6
|
5 |
+
Stable tag: 5.5.2
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 5.5.2 =
|
106 |
+
|
107 |
+
* Fixed the multiple dedicated page creation on Welcome screen
|
108 |
+
|
109 |
= 5.5.1 =
|
110 |
|
111 |
* Fixed few debug notices
|
subscription/profile.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
-
if (!defined('ABSPATH'))
|
|
|
3 |
|
4 |
@include_once NEWSLETTER_INCLUDES_DIR . '/controls.php';
|
5 |
$controls = new NewsletterControls();
|
@@ -68,7 +69,7 @@ $rules = array(0 => __('Optional', 'newsletter'), 1 => __('Required', 'newslette
|
|
68 |
</td>
|
69 |
</tr>
|
70 |
<tr>
|
71 |
-
<th><?php _e('First name', 'newsletter')?></th>
|
72 |
<td>
|
73 |
<table class="newsletter-option-grid">
|
74 |
<tr><th>Field label</th><td><?php $controls->text('name', 50); ?></td></tr>
|
@@ -83,7 +84,7 @@ $rules = array(0 => __('Optional', 'newsletter'), 1 => __('Required', 'newslette
|
|
83 |
</td>
|
84 |
</tr>
|
85 |
<tr>
|
86 |
-
<th><?php _e('Last name', 'newsletter')?></th>
|
87 |
<td>
|
88 |
<table class="newsletter-option-grid">
|
89 |
<tr><th>Field label</th><td><?php $controls->text('surname', 50); ?></td></tr>
|
@@ -94,7 +95,7 @@ $rules = array(0 => __('Optional', 'newsletter'), 1 => __('Required', 'newslette
|
|
94 |
</td>
|
95 |
</tr>
|
96 |
<tr>
|
97 |
-
<th><?php _e('Gender', 'newsletter')?></th>
|
98 |
<td>
|
99 |
<table class="newsletter-option-grid">
|
100 |
<tr><th>Field label</th><td><?php $controls->text('sex', 50); ?></td></tr>
|
@@ -121,10 +122,10 @@ $rules = array(0 => __('Optional', 'newsletter'), 1 => __('Required', 'newslette
|
|
121 |
</tr>
|
122 |
|
123 |
<tr>
|
124 |
-
<th><?php _e('"Subscribe" label', 'newsletter')?></th>
|
125 |
<td>
|
126 |
<?php $controls->text('subscribe', 40); ?>
|
127 |
-
|
128 |
<p class="description">
|
129 |
You can use an image URL (http://...).
|
130 |
</p>
|
@@ -135,12 +136,16 @@ $rules = array(0 => __('Optional', 'newsletter'), 1 => __('Required', 'newslette
|
|
135 |
<th>Privacy checkbox/notice</th>
|
136 |
<td>
|
137 |
<table class="newsletter-option-grid">
|
138 |
-
<tr><th>Enabled?</th><td><?php $controls->select('privacy_status', array(0=>'No', 1=>'Yes', 2=>'Only the notice')); ?></td></tr>
|
139 |
<tr><th>Label</th><td><?php $controls->text('privacy', 50); ?></td></tr>
|
140 |
<tr><th>Privacy URL</th><td>
|
141 |
-
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
144 |
</td></tr>
|
145 |
<tr><th>Error message</th><td><?php $controls->text('privacy_error', 50); ?></td></tr>
|
146 |
</table>
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH'))
|
3 |
+
exit;
|
4 |
|
5 |
@include_once NEWSLETTER_INCLUDES_DIR . '/controls.php';
|
6 |
$controls = new NewsletterControls();
|
69 |
</td>
|
70 |
</tr>
|
71 |
<tr>
|
72 |
+
<th><?php _e('First name', 'newsletter') ?></th>
|
73 |
<td>
|
74 |
<table class="newsletter-option-grid">
|
75 |
<tr><th>Field label</th><td><?php $controls->text('name', 50); ?></td></tr>
|
84 |
</td>
|
85 |
</tr>
|
86 |
<tr>
|
87 |
+
<th><?php _e('Last name', 'newsletter') ?></th>
|
88 |
<td>
|
89 |
<table class="newsletter-option-grid">
|
90 |
<tr><th>Field label</th><td><?php $controls->text('surname', 50); ?></td></tr>
|
95 |
</td>
|
96 |
</tr>
|
97 |
<tr>
|
98 |
+
<th><?php _e('Gender', 'newsletter') ?></th>
|
99 |
<td>
|
100 |
<table class="newsletter-option-grid">
|
101 |
<tr><th>Field label</th><td><?php $controls->text('sex', 50); ?></td></tr>
|
122 |
</tr>
|
123 |
|
124 |
<tr>
|
125 |
+
<th><?php _e('"Subscribe" label', 'newsletter') ?></th>
|
126 |
<td>
|
127 |
<?php $controls->text('subscribe', 40); ?>
|
128 |
+
|
129 |
<p class="description">
|
130 |
You can use an image URL (http://...).
|
131 |
</p>
|
136 |
<th>Privacy checkbox/notice</th>
|
137 |
<td>
|
138 |
<table class="newsletter-option-grid">
|
139 |
+
<tr><th>Enabled?</th><td><?php $controls->select('privacy_status', array(0 => 'No', 1 => 'Yes', 2 => 'Only the notice')); ?></td></tr>
|
140 |
<tr><th>Label</th><td><?php $controls->text('privacy', 50); ?></td></tr>
|
141 |
<tr><th>Privacy URL</th><td>
|
142 |
+
<?php if (function_exists('get_privacy_policy_url') && get_privacy_policy_url()) { ?>
|
143 |
+
<?php $controls->checkbox('privacy_use_wp_url', __('User WordPress privacy URL', 'newsletter')); ?>
|
144 |
+
(<a href="<?php echo esc_attr(get_privacy_policy_url()) ?>"><?php echo esc_html(get_privacy_policy_url()) ?></a>)
|
145 |
+
<br>OR<br>
|
146 |
+
<?php } ?>
|
147 |
+
|
148 |
+
<?php $controls->text_url('privacy_url', 50); ?>
|
149 |
</td></tr>
|
150 |
<tr><th>Error message</th><td><?php $controls->text('privacy_error', 50); ?></td></tr>
|
151 |
</table>
|