Newsletter - Version 6.1.6

Version Description

  • Fixed roles management
Download this release

Release Info

Developer satollo
Plugin Icon 128x128 Newsletter
Version 6.1.6
Comparing to
See all releases

Code changes from version 6.1.5 to 6.1.6

emails/edit.php CHANGED
@@ -46,7 +46,7 @@ if ($controls->is_action('abort')) {
46
 
47
  if ($controls->is_action('change-private')) {
48
  $data = array();
49
- $data['private'] = $controls->data['private'] ? 0 : 1;
50
  $data['id'] = $email['id'];
51
  $email = Newsletter::instance()->save_email($data, ARRAY_A);
52
  $controls->add_message_saved();
46
 
47
  if ($controls->is_action('change-private')) {
48
  $data = array();
49
+ $data['private'] = $controls->data['private'] ? 1 : 0;
50
  $data['id'] = $email['id'];
51
  $email = Newsletter::instance()->save_email($data, ARRAY_A);
52
  $controls->add_message_saved();
includes/controls.php CHANGED
@@ -1579,9 +1579,7 @@ class NewsletterControls {
1579
  }
1580
 
1581
  static function field_help($url, $text = '') {
1582
- if (empty($text))
1583
- $text = __('Read more', 'newsletter');
1584
- echo '<i class="fa fa-question-circle"></i>&nbsp;<a href="', $url, '" target="_blank">', $text, '</a>';
1585
  }
1586
 
1587
  /**
1579
  }
1580
 
1581
  static function field_help($url, $text = '') {
1582
+ echo '<a href="', $url, '" target="_blank" style="text-decoration: none" title="' . esc_attr(__('Read more', 'newsletter')) . '"><i class="fa fa-question-circle"></i>&nbsp;', $text, '</a>';
 
 
1583
  }
1584
 
1585
  /**
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: 6.1.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.
@@ -29,7 +29,7 @@
29
  */
30
 
31
  // Used as dummy parameter on css and js links
32
- define('NEWSLETTER_VERSION', '6.1.5');
33
 
34
  global $newsletter, $wpdb;
35
 
@@ -330,6 +330,14 @@ class Newsletter extends NewsletterModule {
330
  $info_options = $this->options;
331
  $this->save_options($info_options, 'info');
332
  }
 
 
 
 
 
 
 
 
333
 
334
  return true;
335
  }
@@ -338,7 +346,7 @@ class Newsletter extends NewsletterModule {
338
  if (current_user_can('administrator')) {
339
  return true;
340
  }
341
- if (!empty($this->options['editor']) && current_user_can('editor')) return true;
342
  if (!empty($this->options['roles'])) {
343
  foreach ($this->options['roles'] as $role) {
344
  if (current_user_can($role)) {
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: 6.1.6
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.
29
  */
30
 
31
  // Used as dummy parameter on css and js links
32
+ define('NEWSLETTER_VERSION', '6.1.6');
33
 
34
  global $newsletter, $wpdb;
35
 
330
  $info_options = $this->options;
331
  $this->save_options($info_options, 'info');
332
  }
333
+
334
+ if (!empty($this->options['editor'])) {
335
+ if (empty($this->options['roles'])) {
336
+ $this->options['roles'] = array('editor');
337
+ unset($this->options['editor']);
338
+ }
339
+ $this->save_options($this->options);
340
+ }
341
 
342
  return true;
343
  }
346
  if (current_user_can('administrator')) {
347
  return true;
348
  }
349
+ //if (!empty($this->options['editor']) && current_user_can('editor')) return true;
350
  if (!empty($this->options['roles'])) {
351
  foreach ($this->options['roles'] as $role) {
352
  if (current_user_can($role)) {
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
3
  Requires at least: 3.4.0
4
  Tested up to: 5.2.2
5
- Stable tag: 6.1.5
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -108,6 +108,10 @@ Thank you, The Newsletter Team
108
 
109
  == Changelog ==
110
 
 
 
 
 
111
  = 6.1.5 =
112
 
113
  * Improved the Gutenberg block
2
  Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
3
  Requires at least: 3.4.0
4
  Tested up to: 5.2.2
5
+ Stable tag: 6.1.6
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
108
 
109
  == Changelog ==
110
 
111
+ = 6.1.6 =
112
+
113
+ * Fixed roles management
114
+
115
  = 6.1.5 =
116
 
117
  * Improved the Gutenberg block
subscription/antibot.php CHANGED
@@ -121,11 +121,9 @@ if ($controls->is_action()) {
121
  </td>
122
  </tr>
123
  <tr>
124
- <th><?php _e('Captcha', 'newsletter') ?></th>
125
  <td>
126
- <?php
127
- $controls->enabled('captcha');
128
- ?>
129
  </td>
130
  </tr>
131
  <?php /*
121
  </td>
122
  </tr>
123
  <tr>
124
+ <th><?php _e('Captcha', 'newsletter') ?> </th>
125
  <td>
126
+ <?php $controls->enabled('captcha'); ?> <?php $controls->field_help('https://www.thenewsletterplugin.com/documentation/antiflood#captcha')?>
 
 
127
  </td>
128
  </tr>
129
  <?php /*