Newsletter - Version 6.6.0

Version Description

  • Fixed a jQuery bug on drag and drop composer
  • Fix for report number animations
Download this release

Release Info

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

Code changes from version 6.5.9 to 6.6.0

admin.js CHANGED
@@ -45,7 +45,7 @@ function tnp_toggle_schedule() {
45
  jQuery("#tnp-schedule").toggle();
46
  }
47
 
48
- jQuery(document).ready(function () {
49
  jQuery('.tnp-counter-animation').each(function () {
50
  var _this = jQuery(this);
51
 
@@ -83,4 +83,4 @@ jQuery(document).ready(function () {
83
  }
84
 
85
  });
86
- });
45
  jQuery("#tnp-schedule").toggle();
46
  }
47
 
48
+ window.onload = function () {
49
  jQuery('.tnp-counter-animation').each(function () {
50
  var _this = jQuery(this);
51
 
83
  }
84
 
85
  });
86
+ };
emails/tnp-composer/_scripts/newsletter-builder-v2.js CHANGED
@@ -298,6 +298,7 @@ function tnpc_save(form) {
298
  jQuery("#newsletter-preloaded-export .tnpc-row-edit-block").remove();
299
  jQuery("#newsletter-preloaded-export .tnpc-row-clone").remove();
300
  jQuery("#newsletter-preloaded-export .tnpc-row").removeClass("ui-draggable");
 
301
 
302
  form.elements["options[message]"].value = jQuery("#newsletter-preloaded-export").html();
303
  if (document.getElementById("options-title")) {
298
  jQuery("#newsletter-preloaded-export .tnpc-row-edit-block").remove();
299
  jQuery("#newsletter-preloaded-export .tnpc-row-clone").remove();
300
  jQuery("#newsletter-preloaded-export .tnpc-row").removeClass("ui-draggable");
301
+ jQuery('#newsletter-preloaded-export #sortable-helper').remove();
302
 
303
  form.elements["options[message]"].value = jQuery("#newsletter-preloaded-export").html();
304
  if (document.getElementById("options-title")) {
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.5.9
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', '6.5.9');
39
 
40
  global $newsletter, $wpdb;
41
 
@@ -179,6 +179,9 @@ class Newsletter extends NewsletterModule {
179
  }
180
 
181
  add_action('admin_menu', array($this, 'add_extensions_menu'), 90);
 
 
 
182
  }
183
  }
184
 
@@ -196,9 +199,9 @@ class Newsletter extends NewsletterModule {
196
 
197
  if (is_admin()) {
198
  if (!class_exists('NewsletterExtensions')) {
199
-
200
  add_filter('plugin_row_meta', function ($plugin_meta, $plugin_file) {
201
-
202
  static $slugs = array();
203
  if (empty($slugs)) {
204
  $addons = $this->getTnpExtensions();
@@ -215,7 +218,7 @@ class Newsletter extends NewsletterModule {
215
  return $plugin_meta;
216
  }, 10, 2);
217
  }
218
-
219
  add_action('in_admin_header', array($this, 'hook_in_admin_header'), 1000);
220
 
221
  if ($this->is_admin_page()) {
@@ -262,7 +265,7 @@ class Newsletter extends NewsletterModule {
262
  echo 'ok';
263
  die();
264
  }
265
-
266
  //$user = $this->get_user_from_request();
267
  do_action('newsletter_action', $this->action);
268
  }
@@ -740,9 +743,9 @@ class Newsletter extends NewsletterModule {
740
  $end_time = microtime(true);
741
 
742
  if (!$test && $count > 0) {
743
-
744
  NewsletterStatistics::instance()->reset_stats_time($email->id);
745
-
746
  $send_calls = get_option('newsletter_diagnostic_send_calls', array());
747
  $send_calls[] = array($start_time, $end_time, $count, $result);
748
 
@@ -763,7 +766,7 @@ class Newsletter extends NewsletterModule {
763
  }
764
 
765
  /**
766
- *
767
  * @param TNP_Email $email
768
  * @param TNP_User $user
769
  * @return \TNP_Mailer_Message
@@ -809,7 +812,7 @@ class Newsletter extends NewsletterModule {
809
  }
810
 
811
  /**
812
- *
813
  * @param TNP_Mailer_Message $message
814
  * @param int $status
815
  * @param string $error
@@ -897,7 +900,7 @@ class Newsletter extends NewsletterModule {
897
 
898
  /**
899
  * Returns the current registered mailer which must be used to send emails.
900
- *
901
  * @return NewsletterMailer
902
  */
903
  function get_mailer() {
@@ -1124,7 +1127,7 @@ class Newsletter extends NewsletterModule {
1124
 
1125
  /**
1126
  * MUST be kept for old addons.
1127
- *
1128
  * @deprecated since version 6.1.9
1129
  */
1130
  function set_extension_update_data($value, $extension) {
@@ -1133,7 +1136,7 @@ class Newsletter extends NewsletterModule {
1133
 
1134
  /**
1135
  * Retrieve the extensions form the tnp site
1136
- * @return array
1137
  */
1138
  function getTnpExtensions() {
1139
 
@@ -1187,7 +1190,7 @@ class Newsletter extends NewsletterModule {
1187
  /**
1188
  * Returns the Newsletter dedicated page URL or an alternative URL if that page if not
1189
  * configured or not available.
1190
- *
1191
  * @staticvar string $url
1192
  * @return string
1193
  */
@@ -1234,9 +1237,9 @@ class Newsletter extends NewsletterModule {
1234
  return $license_data;
1235
  }
1236
  }
1237
-
1238
  $this->logger->debug('Refreshing the license data');
1239
-
1240
  delete_transient('newsletter_license_data');
1241
 
1242
  $license_key = $this->get_license_key();
@@ -1262,14 +1265,14 @@ class Newsletter extends NewsletterModule {
1262
  return $response;
1263
  }
1264
  }
1265
-
1266
  $download_message = 'You can download all addons from www.thenewsletterplugin.com if your license is valid.';
1267
 
1268
  if (wp_remote_retrieve_response_code($response) != '200') {
1269
  $this->logger->error('license data error: ' . wp_remote_retrieve_response_code($response));
1270
  return new WP_Error(wp_remote_retrieve_response_code($response), 'License validation service error. <br>' . $download_message);
1271
  }
1272
-
1273
  $json = wp_remote_retrieve_body($response);
1274
  $data = json_decode($json);
1275
 
@@ -1310,6 +1313,15 @@ class Newsletter extends NewsletterModule {
1310
  }
1311
  }
1312
 
 
 
 
 
 
 
 
 
 
1313
  }
1314
 
1315
  $newsletter = Newsletter::instance();
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.6.0
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', '6.6.0');
39
 
40
  global $newsletter, $wpdb;
41
 
179
  }
180
 
181
  add_action('admin_menu', array($this, 'add_extensions_menu'), 90);
182
+
183
+ add_filter( 'display_post_states', array( $this, 'add_notice_to_chosen_profile_page_hook' ), 10, 2 );
184
+
185
  }
186
  }
187
 
199
 
200
  if (is_admin()) {
201
  if (!class_exists('NewsletterExtensions')) {
202
+
203
  add_filter('plugin_row_meta', function ($plugin_meta, $plugin_file) {
204
+
205
  static $slugs = array();
206
  if (empty($slugs)) {
207
  $addons = $this->getTnpExtensions();
218
  return $plugin_meta;
219
  }, 10, 2);
220
  }
221
+
222
  add_action('in_admin_header', array($this, 'hook_in_admin_header'), 1000);
223
 
224
  if ($this->is_admin_page()) {
265
  echo 'ok';
266
  die();
267
  }
268
+
269
  //$user = $this->get_user_from_request();
270
  do_action('newsletter_action', $this->action);
271
  }
743
  $end_time = microtime(true);
744
 
745
  if (!$test && $count > 0) {
746
+
747
  NewsletterStatistics::instance()->reset_stats_time($email->id);
748
+
749
  $send_calls = get_option('newsletter_diagnostic_send_calls', array());
750
  $send_calls[] = array($start_time, $end_time, $count, $result);
751
 
766
  }
767
 
768
  /**
769
+ *
770
  * @param TNP_Email $email
771
  * @param TNP_User $user
772
  * @return \TNP_Mailer_Message
812
  }
813
 
814
  /**
815
+ *
816
  * @param TNP_Mailer_Message $message
817
  * @param int $status
818
  * @param string $error
900
 
901
  /**
902
  * Returns the current registered mailer which must be used to send emails.
903
+ *
904
  * @return NewsletterMailer
905
  */
906
  function get_mailer() {
1127
 
1128
  /**
1129
  * MUST be kept for old addons.
1130
+ *
1131
  * @deprecated since version 6.1.9
1132
  */
1133
  function set_extension_update_data($value, $extension) {
1136
 
1137
  /**
1138
  * Retrieve the extensions form the tnp site
1139
+ * @return array
1140
  */
1141
  function getTnpExtensions() {
1142
 
1190
  /**
1191
  * Returns the Newsletter dedicated page URL or an alternative URL if that page if not
1192
  * configured or not available.
1193
+ *
1194
  * @staticvar string $url
1195
  * @return string
1196
  */
1237
  return $license_data;
1238
  }
1239
  }
1240
+
1241
  $this->logger->debug('Refreshing the license data');
1242
+
1243
  delete_transient('newsletter_license_data');
1244
 
1245
  $license_key = $this->get_license_key();
1265
  return $response;
1266
  }
1267
  }
1268
+
1269
  $download_message = 'You can download all addons from www.thenewsletterplugin.com if your license is valid.';
1270
 
1271
  if (wp_remote_retrieve_response_code($response) != '200') {
1272
  $this->logger->error('license data error: ' . wp_remote_retrieve_response_code($response));
1273
  return new WP_Error(wp_remote_retrieve_response_code($response), 'License validation service error. <br>' . $download_message);
1274
  }
1275
+
1276
  $json = wp_remote_retrieve_body($response);
1277
  $data = json_decode($json);
1278
 
1313
  }
1314
  }
1315
 
1316
+ function add_notice_to_chosen_profile_page_hook( $post_states, $post ) {
1317
+
1318
+ if ( $post->ID == $this->options['page'] ) {
1319
+ $post_states[] = __( 'Newsletter subscriber profile page', 'newsletter' );
1320
+ }
1321
+
1322
+ return $post_states;
1323
+ }
1324
+
1325
  }
1326
 
1327
  $newsletter = Newsletter::instance();
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.4
5
- Stable tag: 6.5.9
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
@@ -109,6 +109,11 @@ Thank you, The Newsletter Team
109
 
110
  == Changelog ==
111
 
 
 
 
 
 
112
  = 6.5.9 =
113
 
114
  * Revisited the posts 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.4
5
+ Stable tag: 6.6.0
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
109
 
110
  == Changelog ==
111
 
112
+ = 6.6.0 =
113
+
114
+ * Fixed a jQuery bug on drag and drop composer
115
+ * Fix for report number animations
116
+
117
  = 6.5.9 =
118
 
119
  * Revisited the posts block