Version Description
2016-10 =
Fixed compatibility issues with PHP versions earlier than PHP 5.6;
Renamed 'Emails' email type to 'Newsletters';
Download this release
Release Info
Developer | wysija |
Plugin | MailPoet Newsletters (New) |
Version | 3.0.0-beta.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.0-beta.1 to 3.0.0-beta.2
- lang/mailpoet.pot +6 -3
- lib/Mailer/Methods/AmazonSES.php +3 -2
- lib/Settings/Hosts.php +5 -3
- mailpoet.php +2 -2
- readme.txt +7 -2
- views/newsletters.html +1 -1
- views/update.html +7 -0
lang/mailpoet.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
|
7 |
-
"POT-Creation-Date: 2016-10-28
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -147,7 +147,6 @@ msgid "MailPoet Newsletter"
|
|
147 |
msgstr ""
|
148 |
|
149 |
#: lib/Config/Menu.php:55 lib/Config/Menu.php:56 views/newsletters.html:23
|
150 |
-
#: views/newsletters.html:25
|
151 |
msgid "Emails"
|
152 |
msgstr ""
|
153 |
|
@@ -2760,6 +2759,10 @@ msgstr ""
|
|
2760 |
msgid "Click to toggle"
|
2761 |
msgstr ""
|
2762 |
|
|
|
|
|
|
|
|
|
2763 |
#: views/newsletters.html:26
|
2764 |
msgid "Welcome Emails"
|
2765 |
msgstr ""
|
@@ -4367,7 +4370,7 @@ msgstr ""
|
|
4367 |
msgid "List of Changes"
|
4368 |
msgstr ""
|
4369 |
|
4370 |
-
#: views/update.html:
|
4371 |
msgid "View all changes"
|
4372 |
msgstr ""
|
4373 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
|
7 |
+
"POT-Creation-Date: 2016-10-28 14:50:53+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
147 |
msgstr ""
|
148 |
|
149 |
#: lib/Config/Menu.php:55 lib/Config/Menu.php:56 views/newsletters.html:23
|
|
|
150 |
msgid "Emails"
|
151 |
msgstr ""
|
152 |
|
2759 |
msgid "Click to toggle"
|
2760 |
msgstr ""
|
2761 |
|
2762 |
+
#: views/newsletters.html:25
|
2763 |
+
msgid "Newsletters"
|
2764 |
+
msgstr ""
|
2765 |
+
|
2766 |
#: views/newsletters.html:26
|
2767 |
msgid "Welcome Emails"
|
2768 |
msgstr ""
|
4370 |
msgid "List of Changes"
|
4371 |
msgstr ""
|
4372 |
|
4373 |
+
#: views/update.html:45
|
4374 |
msgid "View all changes"
|
4375 |
msgstr ""
|
4376 |
|
lib/Mailer/Methods/AmazonSES.php
CHANGED
@@ -17,7 +17,7 @@ class AmazonSES {
|
|
17 |
public $reply_to;
|
18 |
public $date;
|
19 |
public $date_without_time;
|
20 |
-
|
21 |
'US East (N. Virginia)' => 'us-east-1',
|
22 |
'US West (Oregon)' => 'us-west-2',
|
23 |
'EU (Ireland)' => 'eu-west-1'
|
@@ -26,7 +26,7 @@ class AmazonSES {
|
|
26 |
function __construct($region, $access_key, $secret_key, $sender, $reply_to) {
|
27 |
$this->aws_access_key = $access_key;
|
28 |
$this->aws_secret_key = $secret_key;
|
29 |
-
$this->aws_region = (in_array($region,
|
30 |
if(!$this->aws_region) {
|
31 |
throw new \Exception(__('Unsupported Amazon SES region.', 'mailpoet'));
|
32 |
}
|
@@ -42,6 +42,7 @@ class AmazonSES {
|
|
42 |
$this->date_without_time = gmdate('Ymd');
|
43 |
}
|
44 |
|
|
|
45 |
function send($newsletter, $subscriber) {
|
46 |
$result = wp_remote_post(
|
47 |
$this->url,
|
17 |
public $reply_to;
|
18 |
public $date;
|
19 |
public $date_without_time;
|
20 |
+
private $available_regions = array(
|
21 |
'US East (N. Virginia)' => 'us-east-1',
|
22 |
'US West (Oregon)' => 'us-west-2',
|
23 |
'EU (Ireland)' => 'eu-west-1'
|
26 |
function __construct($region, $access_key, $secret_key, $sender, $reply_to) {
|
27 |
$this->aws_access_key = $access_key;
|
28 |
$this->aws_secret_key = $secret_key;
|
29 |
+
$this->aws_region = (in_array($region, $this->available_regions)) ? $region : false;
|
30 |
if(!$this->aws_region) {
|
31 |
throw new \Exception(__('Unsupported Amazon SES region.', 'mailpoet'));
|
32 |
}
|
42 |
$this->date_without_time = gmdate('Ymd');
|
43 |
}
|
44 |
|
45 |
+
|
46 |
function send($newsletter, $subscriber) {
|
47 |
$result = wp_remote_post(
|
48 |
$this->url,
|
lib/Settings/Hosts.php
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
<?php
|
2 |
namespace MailPoet\Settings;
|
3 |
|
4 |
-
use MailPoet\Mailer\Methods\AmazonSES;
|
5 |
-
|
6 |
class Hosts {
|
7 |
private static $_smtp = array(
|
8 |
'AmazonSES' => array(
|
@@ -14,7 +12,11 @@ class Hosts {
|
|
14 |
'access_key',
|
15 |
'secret_key'
|
16 |
),
|
17 |
-
'regions' =>
|
|
|
|
|
|
|
|
|
18 |
),
|
19 |
'SendGrid' => array(
|
20 |
'name' => 'SendGrid',
|
1 |
<?php
|
2 |
namespace MailPoet\Settings;
|
3 |
|
|
|
|
|
4 |
class Hosts {
|
5 |
private static $_smtp = array(
|
6 |
'AmazonSES' => array(
|
12 |
'access_key',
|
13 |
'secret_key'
|
14 |
),
|
15 |
+
'regions' => array(
|
16 |
+
'US East (N. Virginia)' => 'us-east-1',
|
17 |
+
'US West (Oregon)' => 'us-west-2',
|
18 |
+
'EU (Ireland)' => 'eu-west-1'
|
19 |
+
)
|
20 |
),
|
21 |
'SendGrid' => array(
|
22 |
'name' => 'SendGrid',
|
mailpoet.php
CHANGED
@@ -4,7 +4,7 @@ if(!defined('ABSPATH')) exit;
|
|
4 |
use \MailPoet\Config\Initializer;
|
5 |
/*
|
6 |
* Plugin Name: MailPoet
|
7 |
-
* Version: 3.0.0-beta.
|
8 |
* Plugin URI: http://www.mailpoet.com
|
9 |
* Description: MailPoet Newsletters.
|
10 |
* Author: MailPoet
|
@@ -22,7 +22,7 @@ use \MailPoet\Config\Initializer;
|
|
22 |
|
23 |
require 'vendor/autoload.php';
|
24 |
|
25 |
-
define('MAILPOET_VERSION', '3.0.0-beta.
|
26 |
|
27 |
$initializer = new Initializer(array(
|
28 |
'file' => __FILE__,
|
4 |
use \MailPoet\Config\Initializer;
|
5 |
/*
|
6 |
* Plugin Name: MailPoet
|
7 |
+
* Version: 3.0.0-beta.2
|
8 |
* Plugin URI: http://www.mailpoet.com
|
9 |
* Description: MailPoet Newsletters.
|
10 |
* Author: MailPoet
|
22 |
|
23 |
require 'vendor/autoload.php';
|
24 |
|
25 |
+
define('MAILPOET_VERSION', '3.0.0-beta.2');
|
26 |
|
27 |
$initializer = new Initializer(array(
|
28 |
'file' => __FILE__,
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: mailpoet
|
3 |
Tags: newsletter, email, welcome email, post notification, autoresponder, mailchimp, signup, smtp
|
4 |
Requires at least: 4.6
|
5 |
-
Tested up to: 4.6
|
6 |
-
Stable tag: 3.0.0-beta.
|
7 |
Create and send beautiful emails and newsletters from WordPress.
|
8 |
|
9 |
== Description ==
|
@@ -83,6 +83,11 @@ Our [support site](https://docs.mailpoet.com/) has plenty of articles. You can w
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
|
|
|
|
|
|
|
|
|
|
86 |
= 3.0.0-beta.1 - 2016-10 =
|
87 |
|
88 |
* Initial public beta release.
|
2 |
Contributors: mailpoet
|
3 |
Tags: newsletter, email, welcome email, post notification, autoresponder, mailchimp, signup, smtp
|
4 |
Requires at least: 4.6
|
5 |
+
Tested up to: 4.6.1
|
6 |
+
Stable tag: 3.0.0-beta.2
|
7 |
Create and send beautiful emails and newsletters from WordPress.
|
8 |
|
9 |
== Description ==
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 3.0.0-beta.2 - 2016-10 =
|
87 |
+
|
88 |
+
* Fixed compatibility issues with PHP versions earlier than PHP 5.6;
|
89 |
+
* Renamed 'Emails' email type to 'Newsletters';
|
90 |
+
|
91 |
= 3.0.0-beta.1 - 2016-10 =
|
92 |
|
93 |
* Initial public beta release.
|
views/newsletters.html
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
<%= localize({
|
23 |
'pageTitle': __('Emails'),
|
24 |
|
25 |
-
'tabStandardTitle': __('
|
26 |
'tabWelcomeTitle': __('Welcome Emails'),
|
27 |
'tabNotificationTitle': __('Post Notifications'),
|
28 |
|
22 |
<%= localize({
|
23 |
'pageTitle': __('Emails'),
|
24 |
|
25 |
+
'tabStandardTitle': __('Newsletters'),
|
26 |
'tabWelcomeTitle': __('Welcome Emails'),
|
27 |
'tabNotificationTitle': __('Post Notifications'),
|
28 |
|
views/update.html
CHANGED
@@ -23,6 +23,13 @@
|
|
23 |
|
24 |
<div id="mailpoet-changelog" clas="feature-section one-col">
|
25 |
<h2><%= __("List of Changes") %></h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<h3>3.0.0-beta.1 - 2016-10-28</h3>
|
27 |
<ul>
|
28 |
<li>Initial public beta release;</li>
|
23 |
|
24 |
<div id="mailpoet-changelog" clas="feature-section one-col">
|
25 |
<h2><%= __("List of Changes") %></h2>
|
26 |
+
<h3>3.0.0-beta.2 - 2016-10-28</h3>
|
27 |
+
<ul>
|
28 |
+
<li>Fixed compatibility issues with PHP versions earlier than PHP 5.6;</li>
|
29 |
+
<li>Renamed 'Emails' email type to 'Newsletters';</li>
|
30 |
+
</ul>
|
31 |
+
<br>
|
32 |
+
|
33 |
<h3>3.0.0-beta.1 - 2016-10-28</h3>
|
34 |
<ul>
|
35 |
<li>Initial public beta release;</li>
|