Newsletter - Version 6.8.6

Version Description

  • Disabled the default WordPress emoji to image replacer on admin pages of Newsletter
Download this release

Release Info

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

Code changes from version 6.8.5 to 6.8.6

Files changed (5) hide show
  1. admin.js +1 -1
  2. admin.min.js +1 -1
  3. main/status.php +25 -0
  4. plugin.php +4 -2
  5. readme.txt +5 -1
admin.js CHANGED
@@ -59,7 +59,7 @@ function tnp_select_toggle(s, t) {
59
  function tnp_date_onchange(field) {
60
  let id = field.id.substring(0, field.id.lastIndexOf('_'));
61
  let base_field = document.getElementById('options-' + id);
62
- console.log(base_field);
63
  //let form = field.form;
64
  let year = document.getElementById(id + '_year');
65
  let month = document.getElementById(id + '_month');
59
  function tnp_date_onchange(field) {
60
  let id = field.id.substring(0, field.id.lastIndexOf('_'));
61
  let base_field = document.getElementById('options-' + id);
62
+ //console.log(base_field);
63
  //let form = field.form;
64
  let year = document.getElementById(id + '_year');
65
  let month = document.getElementById(id + '_month');
admin.min.js CHANGED
@@ -1,5 +1,5 @@
1
  jQuery.cookie=function(c,b,a){if("undefined"!=typeof b){a=a||{};null===b&&(b="",a.expires=-1);var d="";a.expires&&("number"==typeof a.expires||a.expires.toUTCString)&&("number"==typeof a.expires?(d=new Date,d.setTime(d.getTime()+864E5*a.expires)):d=a.expires,d="; expires="+d.toUTCString());var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(b),d,e,f,a].join("")}else{b=null;if(document.cookie&&""!=document.cookie)for(a=
2
  document.cookie.split(";"),d=0;d<a.length;d++)if(e=jQuery.trim(a[d]),e.substring(0,c.length+1)==c+"="){b=decodeURIComponent(e.substring(c.length+1));break}return b}};function tnp_toggle_schedule(){jQuery("#tnp-schedule-button").toggle();jQuery("#tnp-schedule").toggle()}function tnp_select_toggle(c,b){1==c.value?jQuery("#options-"+b).show():jQuery("#options-"+b).hide()}
3
- function tnp_date_onchange(c){var b=c.id.substring(0,c.id.lastIndexOf("_"));c=document.getElementById("options-"+b);console.log(c);let a=document.getElementById(b+"_year"),d=document.getElementById(b+"_month");b=document.getElementById(b+"_day");c.value=""===a.value||""===d.value||""===b.value?0:(new Date(a.value,d.value,b.value,12,0,0)).getTime()/1E3}
4
  window.onload=function(){jQuery(".tnp-counter-animation").each(function(){var c=jQuery(this),b=null;(function(a){return!isNaN(Number(a))&&-1!==Number(a).toString().indexOf(".")})(c.text())?b={parsed:parseFloat(c.text()),rounded:function(a){return a.toFixed(1)}}:(b={parsed:parseInt(c.text()),rounded:function(a){return Math.ceil(a)}},c.hasClass("percentage")&&c.css("min-width","60px"));jQuery({counter:0}).animate({counter:b.parsed},{duration:1E3,easing:"swing",step:function(){c.text(b.rounded(this.counter))}})});
5
  (function(){if(jQuery("#tnp-nl-status").length&&jQuery("#newsletter-form").length){var c=jQuery("#tnp-nl-status .tnp-nl-status-schedule-value");jQuery("#newsletter-form").change(function(b){1===jQuery(b.target).parents("#tabs-options").length&&c.text(tnp_translations.save_to_update_counter)})}})()};
1
  jQuery.cookie=function(c,b,a){if("undefined"!=typeof b){a=a||{};null===b&&(b="",a.expires=-1);var d="";a.expires&&("number"==typeof a.expires||a.expires.toUTCString)&&("number"==typeof a.expires?(d=new Date,d.setTime(d.getTime()+864E5*a.expires)):d=a.expires,d="; expires="+d.toUTCString());var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(b),d,e,f,a].join("")}else{b=null;if(document.cookie&&""!=document.cookie)for(a=
2
  document.cookie.split(";"),d=0;d<a.length;d++)if(e=jQuery.trim(a[d]),e.substring(0,c.length+1)==c+"="){b=decodeURIComponent(e.substring(c.length+1));break}return b}};function tnp_toggle_schedule(){jQuery("#tnp-schedule-button").toggle();jQuery("#tnp-schedule").toggle()}function tnp_select_toggle(c,b){1==c.value?jQuery("#options-"+b).show():jQuery("#options-"+b).hide()}
3
+ function tnp_date_onchange(c){var b=c.id.substring(0,c.id.lastIndexOf("_"));c=document.getElementById("options-"+b);let a=document.getElementById(b+"_year"),d=document.getElementById(b+"_month");b=document.getElementById(b+"_day");c.value=""===a.value||""===d.value||""===b.value?0:(new Date(a.value,d.value,b.value,12,0,0)).getTime()/1E3}
4
  window.onload=function(){jQuery(".tnp-counter-animation").each(function(){var c=jQuery(this),b=null;(function(a){return!isNaN(Number(a))&&-1!==Number(a).toString().indexOf(".")})(c.text())?b={parsed:parseFloat(c.text()),rounded:function(a){return a.toFixed(1)}}:(b={parsed:parseInt(c.text()),rounded:function(a){return Math.ceil(a)}},c.hasClass("percentage")&&c.css("min-width","60px"));jQuery({counter:0}).animate({counter:b.parsed},{duration:1E3,easing:"swing",step:function(){c.text(b.rounded(this.counter))}})});
5
  (function(){if(jQuery("#tnp-nl-status").length&&jQuery("#newsletter-form").length){var c=jQuery("#tnp-nl-status .tnp-nl-status-schedule-value");jQuery("#newsletter-form").change(function(b){1===jQuery(b.target).parents("#tabs-options").length&&c.text(tnp_translations.save_to_update_counter)})}})()};
main/status.php CHANGED
@@ -1210,6 +1210,31 @@ function tnp_status_print_flag($condition) {
1210
 
1211
  </tbody>
1212
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1213
  <h3>General parameters</h3>
1214
  <table class="widefat" id="tnp-parameters-table">
1215
  <thead>
1210
 
1211
  </tbody>
1212
  </table>
1213
+
1214
+ <h3>3rd party plugins</h3>
1215
+ <table class="widefat" id="tnp-status-table">
1216
+ <thead>
1217
+ <tr>
1218
+ <th>Plugin</th>
1219
+ <th><?php _e('Status', 'newsletter') ?></th>
1220
+ <th>Action</th>
1221
+ </tr>
1222
+ </thead>
1223
+ <tbody>
1224
+ <?php if (is_plugin_active('plugin-load-filter/plugin-load-filter.php')) { ?>
1225
+ <tr>
1226
+ <td><a href="https://wordpress.org/plugins/plugin-load-filter/" target="_blank">Plugin load filter</a></td>
1227
+ <td>
1228
+ <span class="tnp-maybe">MAY BE</span>
1229
+ </td>
1230
+ <td>
1231
+ Be sure Newsletter is set as active in EVERY context.
1232
+ </td>
1233
+ </tr>
1234
+ <?php } ?>
1235
+ </tbody>
1236
+ </table>
1237
+
1238
  <h3>General parameters</h3>
1239
  <table class="widefat" id="tnp-parameters-table">
1240
  <thead>
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.8.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.
@@ -35,7 +35,7 @@ if (version_compare(phpversion(), '5.6', '<')) {
35
  return;
36
  }
37
 
38
- define('NEWSLETTER_VERSION', '6.8.5');
39
 
40
  global $newsletter, $wpdb;
41
 
@@ -189,6 +189,8 @@ class Newsletter extends NewsletterModule {
189
  add_filter('display_post_states', array($this, 'add_notice_to_chosen_profile_page_hook'), 10, 2);
190
 
191
  if ($this->is_admin_page()) {
 
 
192
  add_action('admin_enqueue_scripts', array($this, 'hook_wp_admin_enqueue_scripts'));
193
  }
194
 
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.8.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
  return;
36
  }
37
 
38
+ define('NEWSLETTER_VERSION', '6.8.6');
39
 
40
  global $newsletter, $wpdb;
41
 
189
  add_filter('display_post_states', array($this, 'add_notice_to_chosen_profile_page_hook'), 10, 2);
190
 
191
  if ($this->is_admin_page()) {
192
+ // Remove the emoji replacer to save to database the original emoji characters (see even woocommerce for the same problem)
193
+ remove_action('admin_print_scripts', 'print_emoji_detection_script');
194
  add_action('admin_enqueue_scripts', array($this, 'hook_wp_admin_enqueue_scripts'));
195
  }
196
 
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.5
5
- Stable tag: 6.8.5
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
@@ -113,6 +113,10 @@ Thank you, The Newsletter Team
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = 6.8.5 =
117
 
118
  * Updated Controls class to support the new Reports Addon
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.5
5
+ Stable tag: 6.8.6
6
  Requires PHP: 5.6
7
  Contributors: satollo,webagile,michael-travan
8
 
113
 
114
  == Changelog ==
115
 
116
+ = 6.8.6 =
117
+
118
+ * Disabled the default WordPress emoji to image replacer on admin pages of Newsletter
119
+
120
  = 6.8.5 =
121
 
122
  * Updated Controls class to support the new Reports Addon