Newsletter - Version 5.9.5

Version Description

  • Changed edit and delete icons on composer to avoid conflict with FontAwesome JS
Download this release

Release Info

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

Code changes from version 5.9.4 to 5.9.5

emails/tnp-composer/_assets/delete.png ADDED
Binary file
emails/tnp-composer/_assets/edit.png ADDED
Binary file
emails/tnp-composer/_scripts/newsletter-builder.js CHANGED
@@ -123,7 +123,7 @@ jQuery.fn.hover_edit = function () {
123
  }
124
 
125
  jQuery.fn.add_delete = function () {
126
- this.append('<div class="tnpc-row-delete"><i class="fa fa-times" ></i></div>');
127
  this.find('.tnpc-row-delete').perform_delete();
128
  }
129
 
@@ -136,7 +136,7 @@ jQuery.fn.perform_delete = function () {
136
  }
137
 
138
  jQuery.fn.add_block_edit = function () {
139
- this.append('<div class="tnpc-row-edit-block"><i class="fa fa-pencil" ></i></div>');
140
  this.find('.tnpc-row-edit-block i').perform_block_edit();
141
  }
142
 
123
  }
124
 
125
  jQuery.fn.add_delete = function () {
126
+ this.append('<div class="tnpc-row-delete"><i><img src="' + TNP_PLUGIN_URL + '/emails/tnp-composer/_assets/delete.png" width="16"></i></div>');
127
  this.find('.tnpc-row-delete').perform_delete();
128
  }
129
 
136
  }
137
 
138
  jQuery.fn.add_block_edit = function () {
139
+ this.append('<div class="tnpc-row-edit-block"><i><img src="' + TNP_PLUGIN_URL + '/emails/tnp-composer/_assets/edit.png" width="16"></i></div>');
140
  this.find('.tnpc-row-edit-block i').perform_block_edit();
141
  }
142
 
includes/TNP.php CHANGED
@@ -277,11 +277,12 @@ class TNP {
277
  public static function newsletters($params) {
278
 
279
  global $wpdb;
 
280
 
281
  $list = $wpdb->get_results("SELECT id, subject, created, status, total, sent, send_on FROM " . NEWSLETTER_EMAILS_TABLE . " ORDER BY id DESC LIMIT 10", OBJECT);
282
 
283
  if ($wpdb->last_error) {
284
- $this->logger->error($wpdb->last_error);
285
  return false;
286
  }
287
 
277
  public static function newsletters($params) {
278
 
279
  global $wpdb;
280
+ $newsletter = Newsletter::instance();
281
 
282
  $list = $wpdb->get_results("SELECT id, subject, created, status, total, sent, send_on FROM " . NEWSLETTER_EMAILS_TABLE . " ORDER BY id DESC LIMIT 10", OBJECT);
283
 
284
  if ($wpdb->last_error) {
285
+ $newsletter->logger->error($wpdb->last_error);
286
  return false;
287
  }
288
 
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.9.4
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', '5.9.4');
33
 
34
  global $newsletter, $wpdb;
35
 
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.9.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
  */
30
 
31
  // Used as dummy parameter on css and js links
32
+ define('NEWSLETTER_VERSION', '5.9.5');
33
 
34
  global $newsletter, $wpdb;
35
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
3
  Requires at least: 3.4.0
4
  Tested up to: 5.2
5
- Stable tag: 5.9.4
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -122,6 +122,10 @@ Thank you, The Newsletter Team
122
 
123
  == Changelog ==
124
 
 
 
 
 
125
  = 5.9.4 =
126
 
127
  * Added multi subscriber deletion
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
3
  Requires at least: 3.4.0
4
  Tested up to: 5.2
5
+ Stable tag: 5.9.5
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
122
 
123
  == Changelog ==
124
 
125
+ = 5.9.5 =
126
+
127
+ * Changed edit and delete icons on composer to avoid conflict with FontAwesome JS
128
+
129
  = 5.9.4 =
130
 
131
  * Added multi subscriber deletion