Newsletter - Version 7.0.7

Version Description

  • [COMPOSER] Fixed a warning in some inline editable blocks
  • [NEWSLETTERS] Fixed style which made list labels badly readable
  • [NEWSLETTERS] Fixed style which made bullet lists white (not on delivered newsletters)
  • [GENERAL] Added some references to the not working scheduler warning
Download this release

Release Info

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

Code changes from version 7.0.6 to 7.0.7

Files changed (7) hide show
  1. admin.css +8 -15
  2. includes/composer.php +2 -1
  3. main/index.php +1 -1
  4. plugin.php +2 -2
  5. readme.txt +8 -1
  6. tnp-header.php +1 -1
  7. users/import.php +1 -1
admin.css CHANGED
@@ -229,15 +229,13 @@
229
  #tnp-body h2,
230
  #tnp-body h3,
231
  #tnp-body h4,
232
- #tnp-body p,
233
- #tnp-body li {
234
  color: #fff;
235
  }
236
 
237
  #tnp-body ul {
238
  list-style-type: circle;
239
  list-style-position: inside;
240
- margin-left: 1em;
241
  }
242
 
243
  #tnp-body a, #tnp-body a:active {
@@ -368,6 +366,7 @@
368
 
369
  #tnp-body .widefat {
370
  width: 90%;
 
371
  }
372
 
373
  #tnp-body .widefat th {
@@ -388,26 +387,20 @@
388
  vertical-align: middle;
389
  }
390
 
391
- .tnp-newsletters-list tbody tr {
392
- height: 70px;
393
  }
394
 
395
- .widefat tr:nth-child(even) {
396
- background-color: #f4faff;
397
  }
398
 
399
  /* jQuery UI tabs corrections */
400
- #tnp-body #tabs h1,
401
- #tnp-body #tabs h2,
402
  #tnp-body #tabs h3,
403
  #tnp-body #tabs h4,
404
  #tnp-body #tabs p,
405
- #tnp-body #tabs td,
406
- #tnp-body #tabs th,
407
- #tnp-body #tabs input,
408
- #tnp-body #tabs select,
409
- #tnp-body #tabs textarea,
410
- #tnp-body #tabs a {
411
  color: #444;
412
  }
413
 
229
  #tnp-body h2,
230
  #tnp-body h3,
231
  #tnp-body h4,
232
+ #tnp-body p {
 
233
  color: #fff;
234
  }
235
 
236
  #tnp-body ul {
237
  list-style-type: circle;
238
  list-style-position: inside;
 
239
  }
240
 
241
  #tnp-body a, #tnp-body a:active {
366
 
367
  #tnp-body .widefat {
368
  width: 90%;
369
+ color: #444;
370
  }
371
 
372
  #tnp-body .widefat th {
387
  vertical-align: middle;
388
  }
389
 
390
+ #tnp-body .widefat tr:nth-child(even) {
391
+ background-color: #f4faff;
392
  }
393
 
394
+ #tnp-body .widefat.tnp-newsletters-list tbody tr {
395
+ height: 70px;
396
  }
397
 
398
  /* jQuery UI tabs corrections */
 
 
399
  #tnp-body #tabs h3,
400
  #tnp-body #tabs h4,
401
  #tnp-body #tabs p,
402
+ #tnp-body #tabs li
403
+ {
 
 
 
 
404
  color: #444;
405
  }
406
 
includes/composer.php CHANGED
@@ -263,8 +263,9 @@ class TNP_Composer {
263
  * @return bool
264
  */
265
  static function is_post_field_edited_inline($inline_edit_list, $field_type, $post_id) {
266
- if (empty($inline_edit_list))
267
  return false;
 
268
  foreach ($inline_edit_list as $edit) {
269
  if ($edit['type'] == $field_type && $edit['post_id'] == $post_id) {
270
  return true;
263
  * @return bool
264
  */
265
  static function is_post_field_edited_inline($inline_edit_list, $field_type, $post_id) {
266
+ if (empty($inline_edit_list) || !is_array($inline_edit_list)) {
267
  return false;
268
+ }
269
  foreach ($inline_edit_list as $edit) {
270
  if ($edit['type'] == $field_type && $edit['post_id'] == $post_id) {
271
  return true;
main/index.php CHANGED
@@ -127,7 +127,7 @@ $lists = $this->get_lists();
127
  </div>
128
  <div class="tnp-card-newsletters-action">
129
  <?php
130
- if ($email->status == 'sent') {
131
  echo '<a class="button-primary" href="' . $statistics_module->get_statistics_url($email->id) . '"><i class="fas fa-chart-bar"></i></a>';
132
  } else {
133
  echo $emails_module->get_edit_button($email, true);
127
  </div>
128
  <div class="tnp-card-newsletters-action">
129
  <?php
130
+ if ($email->status === TNP_Email::STATUS_SENT || $email->status === TNP_Email::STATUS_SENDING) {
131
  echo '<a class="button-primary" href="' . $statistics_module->get_statistics_url($email->id) . '"><i class="fas fa-chart-bar"></i></a>';
132
  } else {
133
  echo $emails_module->get_edit_button($email, true);
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: 7.0.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.
@@ -35,7 +35,7 @@ if (version_compare(phpversion(), '5.6', '<')) {
35
  return;
36
  }
37
 
38
- define('NEWSLETTER_VERSION', '7.0.6');
39
 
40
  global $newsletter, $wpdb;
41
 
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: 7.0.7
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.
35
  return;
36
  }
37
 
38
+ define('NEWSLETTER_VERSION', '7.0.7');
39
 
40
  global $newsletter, $wpdb;
41
 
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.7
5
- Stable tag: 7.0.6
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
  License: GPLv2 or later
@@ -118,6 +118,13 @@ Thank you, The Newsletter Team
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
 
 
121
  = 7.0.6 =
122
 
123
  * [COMPOSER] CTA block not grabbing settings from the "old" blocks
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.7
5
+ Stable tag: 7.0.7
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
  License: GPLv2 or later
118
 
119
  == Changelog ==
120
 
121
+ = 7.0.7 =
122
+
123
+ * [COMPOSER] Fixed a warning in some inline editable blocks
124
+ * [NEWSLETTERS] Fixed style which made list labels badly readable
125
+ * [NEWSLETTERS] Fixed style which made bullet lists white (not on delivered newsletters)
126
+ * [GENERAL] Added some references to the not working scheduler warning
127
+
128
  = 7.0.6 =
129
 
130
  * [COMPOSER] CTA block not grabbing settings from the "old" blocks
tnp-header.php CHANGED
@@ -261,7 +261,7 @@ $warning |= empty($status_options['mail']);
261
  if ($x === false) {
262
  echo '<div class="tnp-warning">The Newsletter delivery engine is off (it should never be off). Deactivate and reactivate the Newsletter plugin.</div>';
263
  } else if (time() - $x > 900) {
264
- echo '<div class="tnp-warning">The WP scheduler doesn\'t seem to be running correctly for Newsletter. <a href="https://www.thenewsletterplugin.com/documentation/?p=6128" target="_blank"><strong>Read this page to solve the problem</strong></a>.</div>';
265
  } else {
266
  // if (empty($this->options['disable_cron_notice'])) {
267
  // $cron_data = get_option('newsletter_diagnostic_cron_data');
261
  if ($x === false) {
262
  echo '<div class="tnp-warning">The Newsletter delivery engine is off (it should never be off). Deactivate and reactivate the Newsletter plugin.</div>';
263
  } else if (time() - $x > 900) {
264
+ echo '<div class="tnp-warning">The WP scheduler doesn\'t seem to be running correctly for Newsletter. <a href="https://www.thenewsletterplugin.com/documentation/?p=6128" target="_blank"><strong>Read this page to solve the problem</strong></a>. Check even the WP Tools&gt;Site Health panel. A good plugin to check the status of the WP internal scheduler is <a href="https://wordpress.org/plugins/wp-crontrol/" target="_blank">WP Control</a>.</div>';
265
  } else {
266
  // if (empty($this->options['disable_cron_notice'])) {
267
  // $cron_data = get_option('newsletter_diagnostic_cron_data');
users/import.php CHANGED
@@ -20,7 +20,7 @@ $controls = new NewsletterControls();
20
  The import features have been consolidated in the <strong>free</strong> "Adacanced Import" addon you can find on
21
  <a href="?page=newsletter_main_extensions">addons management panel</a>. Please install that addon to have:
22
  </p>
23
- <ul>
24
  <li>File upload or copy and paste of data</li>
25
  <li>Background processing for long set of data</li>
26
  <li>Quick bounceed address import</li>
20
  The import features have been consolidated in the <strong>free</strong> "Adacanced Import" addon you can find on
21
  <a href="?page=newsletter_main_extensions">addons management panel</a>. Please install that addon to have:
22
  </p>
23
+ <ul style="color: #fff; margin-left: 1em;">
24
  <li>File upload or copy and paste of data</li>
25
  <li>Background processing for long set of data</li>
26
  <li>Quick bounceed address import</li>