MailPoet Newsletters (Previous) - Version 2.20

Version Description

  • 2022-02-08 =
  • Added: admin notice about discontinuing the MailPoet 2 plugin.
Download this release

Release Info

Developer MailPoet
Plugin Icon 128x128 MailPoet Newsletters (Previous)
Version 2.20
Comparing to
See all releases

Code changes from version 2.19 to 2.20

controllers/ajax/config.php CHANGED
@@ -16,6 +16,7 @@ class WYSIJA_control_back_config extends WYSIJA_control{
16
  'form_save',
17
  'wysija_dismiss_update_notice',
18
  'wysija_dismiss_license_notice',
 
19
  ];
20
 
21
 
@@ -484,4 +485,8 @@ class WYSIJA_control_back_config extends WYSIJA_control{
484
  function wysija_dismiss_license_notice() {
485
  WYSIJA::update_option('wysija_dismiss_license_notice', true);
486
  }
487
- }
 
 
 
 
16
  'form_save',
17
  'wysija_dismiss_update_notice',
18
  'wysija_dismiss_license_notice',
19
+ 'wysija_dismiss_sunset_notice',
20
  ];
21
 
22
 
485
  function wysija_dismiss_license_notice() {
486
  WYSIJA::update_option('wysija_dismiss_license_notice', true);
487
  }
488
+
489
+ function wysija_dismiss_sunset_notice() {
490
+ WYSIJA::update_option('wysija_dismiss_sunset_notice', true);
491
+ }
492
+ }
controllers/back.php CHANGED
@@ -11,6 +11,7 @@ class WYSIJA_control_back extends WYSIJA_control{
11
  var $statuses=array();
12
  var $viewShow=null;
13
  var $_affected_rows = 0; //affected rows by batch select
 
14
 
15
  function __construct($extension="wysija-newsletters"){
16
  $this->extension=$extension;
@@ -98,6 +99,14 @@ class WYSIJA_control_back extends WYSIJA_control{
98
  }
99
  }
100
 
 
 
 
 
 
 
 
 
101
  }
102
 
103
 
11
  var $statuses=array();
12
  var $viewShow=null;
13
  var $_affected_rows = 0; //affected rows by batch select
14
+ var $_notice_displayed = false;
15
 
16
  function __construct($extension="wysija-newsletters"){
17
  $this->extension=$extension;
99
  }
100
  }
101
 
102
+ if (!get_option("wysija_dismiss_sunset_notice") && !$this->_notice_displayed) {
103
+ $notice = __("Support for this plugin will cease at the end of July, 2022 – find out more [link1]over on our blog[/link1]. We recommend looking at [link2]MailPoet 3[/link2] as an alternative.");
104
+ $notice = str_replace(['[link1]', '[/link1]'], ['<a href="https://www.mailpoet.com/blog/mailpoet-2-is-being-retired/" target="_blank">', '</a>'], $notice);
105
+ $notice = str_replace(['[link2]', '[/link2]'], ['<a href="https://wordpress.org/plugins/mailpoet/" target="_blank">', '</a>'], $notice);
106
+ $notice .= '<br><br>' . str_replace( ['[link]', '[/link]'], ['<a href="javascript:;" class="wysija_dismiss_sunset_notice">', '</a>'], __("[link]Dismiss[/link] this notice."));
107
+ (new WYSIJA_object())->error($notice, true);
108
+ $this->_notice_displayed = true; // The method is called more than once so this is here to prevent multiple display
109
+ }
110
  }
111
 
112
 
core/base.php CHANGED
@@ -19,7 +19,7 @@ class WYSIJA_object{
19
  * Static variable holding core MailPoet's version
20
  * @var array
21
  */
22
- static $version = '2.19';
23
 
24
  function __construct(){}
25
 
19
  * Static variable holding core MailPoet's version
20
  * @var array
21
  */
22
+ static $version = '2.20';
23
 
24
  function __construct(){}
25
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailPoet 2
4
  Plugin URI: http://www.mailpoet.com/
5
  Description: Create and send newsletters or automated emails. Capture subscribers with a widget. Import and manage your lists. This version is being replaced by MailPoet 3. Support offered to Premium customers only. Updates are limited to security issues.
6
- Version: 2.19
7
  Author: MailPoet
8
  Author URI: http://www.mailpoet.com/
9
  License: GPLv2 or later
3
  Plugin Name: MailPoet 2
4
  Plugin URI: http://www.mailpoet.com/
5
  Description: Create and send newsletters or automated emails. Capture subscribers with a widget. Import and manage your lists. This version is being replaced by MailPoet 3. Support offered to Premium customers only. Updates are limited to security issues.
6
+ Version: 2.20
7
  Author: MailPoet
8
  Author URI: http://www.mailpoet.com/
9
  License: GPLv2 or later
js/admin.js CHANGED
@@ -1 +1 @@
1
- function trim(e){return e.replace(/^\s+/g,"").replace(/\s+$/g,"")}function getURLParameter(e){return decodeURI((RegExp(e+"=(.+?)(&|$)").exec(location.search)||[,null])[1])}function addError(e){var s=new Array;s[0]=e,addMsg("error",s)}function addNotice(e){var s=new Array;s[0]=e,addMsg("update",s)}function addMsg(a,e){jQuery(".wysija-msg.ajax").html('<div class="allmsgs"></div>'),jQuery(".wysija-msg.ajax .allmsgs ."+a+" ul").length||jQuery(".wysija-msg.ajax .allmsgs").append('<div class="'+a+'"><ul></ul></div>'),jQuery.each(e,function(e,s){jQuery(".wysija-msg.ajax .allmsgs ."+a+" ul").append("<li>"+s+"</li>")})}jQuery(function(i){i(document).ready(function(){if("undefined"!=typeof wysijaAJAX&&wysijaAJAX.pluginurl!==undefined){var e=wysijaAJAX.pluginurl.replace("plugins/wysija-newsletters","themes"),s=wysijaAJAX.pluginurl.replace("wysija-newsletters",""),a="";i('script[src^="'+e+'"]').each(function(){a+="<li>"+i(this).attr("src")+"</li>"}),i('script[src^="'+s+'"]').each(function(){i(this).attr('src:notcontains("wysija-newsletters")')&&(a+="<li>"+i(this).attr("src")+"</li>")}),""!==a&&(i(".wysija-footer").append('<div class="expandquer"><h2 class="errors">WYSIJA POSSIBLE 3rd PARTY CONFLICTS</h2><pre><ol>'+a+"</ol></pre></div>"),i(".wysija-footer pre").hide())}i("#wysija-app").siblings("div.updated, div.error").hide()}),i(document).on("click",".showerrors",function(){return i(".xdetailed-errors").toggle(),!1}),i(document).on("click",".shownotices",function(){return i(".xdetailed-updated").toggle(),!1}),i(document).on("click",".wysija_dismiss_update_notice, .wysija_dismiss_license_notice",function(){return wysijaAJAX.controller="config",wysijaAJAX.task=i(this).attr("class"),i.ajax({type:"post",url:wysijaAJAX.ajaxurl,data:wysijaAJAX,success:function(){i(".notice-msg").remove()},dataType:"jsonp"}),!1})});
1
+ function trim(s){return s.replace(/^\s+/g,"").replace(/\s+$/g,"")}function getURLParameter(s){return decodeURI((RegExp(s+"=(.+?)(&|$)").exec(location.search)||[,null])[1])}function addError(s){var e=new Array;e[0]=s,addMsg("error",e)}function addNotice(s){var e=new Array;e[0]=s,addMsg("update",e)}function addMsg(i,s){jQuery(".wysija-msg.ajax").html('<div class="allmsgs"></div>'),jQuery(".wysija-msg.ajax .allmsgs ."+i+" ul").length||jQuery(".wysija-msg.ajax .allmsgs").append('<div class="'+i+'"><ul></ul></div>'),jQuery.each(s,function(s,e){jQuery(".wysija-msg.ajax .allmsgs ."+i+" ul").append("<li>"+e+"</li>")})}jQuery(function(a){a(document).ready(function(){if("undefined"!=typeof wysijaAJAX&&wysijaAJAX.pluginurl!==undefined){var s=wysijaAJAX.pluginurl.replace("plugins/wysija-newsletters","themes"),e=wysijaAJAX.pluginurl.replace("wysija-newsletters",""),i="";a('script[src^="'+s+'"]').each(function(){i+="<li>"+a(this).attr("src")+"</li>"}),a('script[src^="'+e+'"]').each(function(){a(this).attr('src:notcontains("wysija-newsletters")')&&(i+="<li>"+a(this).attr("src")+"</li>")}),""!==i&&(a(".wysija-footer").append('<div class="expandquer"><h2 class="errors">WYSIJA POSSIBLE 3rd PARTY CONFLICTS</h2><pre><ol>'+i+"</ol></pre></div>"),a(".wysija-footer pre").hide())}a("#wysija-app").siblings("div.updated, div.error").hide()}),a(document).on("click",".showerrors",function(){return a(".xdetailed-errors").toggle(),!1}),a(document).on("click",".shownotices",function(){return a(".xdetailed-updated").toggle(),!1}),a(document).on("click",".wysija_dismiss_update_notice, .wysija_dismiss_license_notice, .wysija_dismiss_sunset_notice",function(){wysijaAJAX.controller="config",wysijaAJAX.task=a(this).attr("class");var s=a(this).closest(".notice-msg, .error-msg");return a.ajax({type:"post",url:wysijaAJAX.ajaxurl,data:wysijaAJAX,success:function(){s&&s.remove()},dataType:"jsonp"}),!1})});
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mailpoet
3
  Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP
4
  Requires at least: 3.5
5
  Tested up to: 5.5
6
- Stable tag: 2.19
7
  Send newsletters post notifications or autoresponders from WordPress easily, and beautifully. Start to capture subscribers with our widget now.
8
 
9
  == Description ==
@@ -113,6 +113,9 @@ Our [support site](https://www.mailpoet.com/support) has plenty of articles and
113
 
114
  == Changelog ==
115
 
 
 
 
116
  = 2.19 - 2022-01-11 =
117
  * Removed: links to the demo.mailpoet.com.
118
 
3
  Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP
4
  Requires at least: 3.5
5
  Tested up to: 5.5
6
+ Stable tag: 2.20
7
  Send newsletters post notifications or autoresponders from WordPress easily, and beautifully. Start to capture subscribers with our widget now.
8
 
9
  == Description ==
113
 
114
  == Changelog ==
115
 
116
+ = 2.20 - 2022-02-08 =
117
+ * Added: admin notice about discontinuing the MailPoet 2 plugin.
118
+
119
  = 2.19 - 2022-01-11 =
120
  * Removed: links to the demo.mailpoet.com.
121