Version Description
- 2020-01-13
- Fixed: Notify on error bug - crash site
- Fixed: From header
Download this release
Release Info
| Developer | yehudah |
| Plugin | |
| Version | 2.0.9 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.8 to 2.0.9
Postman/Extensions/Core/Notifications/PostmanNotify.php
CHANGED
|
@@ -15,9 +15,11 @@ class PostmanNotify {
|
|
| 15 |
const NOTIFICATIONS_PUSHOVER_CRED = 'postman_pushover_cred';
|
| 16 |
const NOTIFICATIONS_SLACK_CRED = 'postman_slack_cred';
|
| 17 |
|
|
|
|
|
|
|
| 18 |
public function __construct() {
|
| 19 |
|
| 20 |
-
$this->options =
|
| 21 |
|
| 22 |
add_filter( 'post_smtp_admin_tabs', array( $this, 'tabs' ) );
|
| 23 |
add_action( 'post_smtp_settings_menu', array( $this, 'menu' ) );
|
| 15 |
const NOTIFICATIONS_PUSHOVER_CRED = 'postman_pushover_cred';
|
| 16 |
const NOTIFICATIONS_SLACK_CRED = 'postman_slack_cred';
|
| 17 |
|
| 18 |
+
private $options;
|
| 19 |
+
|
| 20 |
public function __construct() {
|
| 21 |
|
| 22 |
+
$this->options = PostmanNotifyOptions::getInstance();
|
| 23 |
|
| 24 |
add_filter( 'post_smtp_admin_tabs', array( $this, 'tabs' ) );
|
| 25 |
add_action( 'post_smtp_settings_menu', array( $this, 'menu' ) );
|
Postman/Extensions/Core/Notifications/PostmanNotifyOptions.php
CHANGED
|
@@ -12,7 +12,18 @@ class PostmanNotifyOptions {
|
|
| 12 |
|
| 13 |
private $options;
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
{
|
| 17 |
$this->options = get_option( 'postman_options' );
|
| 18 |
}
|
| 12 |
|
| 13 |
private $options;
|
| 14 |
|
| 15 |
+
private static $instance;
|
| 16 |
+
|
| 17 |
+
public static function getInstance()
|
| 18 |
+
{
|
| 19 |
+
if ( ! self::$instance ) {
|
| 20 |
+
self::$instance = new static;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
return self::$instance;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
private function __construct()
|
| 27 |
{
|
| 28 |
$this->options = get_option( 'postman_options' );
|
| 29 |
}
|
Postman/Phpmailer/PostsmtpMailer.php
CHANGED
|
@@ -39,7 +39,7 @@ class PostsmtpMailer extends PHPMailer {
|
|
| 39 |
|
| 40 |
public function hooks() {
|
| 41 |
if ( $this->options->getTransportType() == 'smtp' ) {
|
| 42 |
-
add_action( 'phpmailer_init', array( $this, 'phpmailer_smtp_init' ) );
|
| 43 |
}
|
| 44 |
}
|
| 45 |
|
| 39 |
|
| 40 |
public function hooks() {
|
| 41 |
if ( $this->options->getTransportType() == 'smtp' ) {
|
| 42 |
+
add_action( 'phpmailer_init', array( $this, 'phpmailer_smtp_init' ), 999 );
|
| 43 |
}
|
| 44 |
}
|
| 45 |
|
postman-smtp.php
CHANGED
|
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 6 |
* Plugin Name: Post SMTP
|
| 7 |
* Plugin URI: https://wordpress.org/plugins/post-smtp/
|
| 8 |
* Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes!
|
| 9 |
-
* Version: 2.0.
|
| 10 |
* Author: Yehuda Hassine
|
| 11 |
* Text Domain: post-smtp
|
| 12 |
* Author URI: https://postmansmtp.com
|
|
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 44 |
define( 'POST_SMTP_BASE', __FILE__ );
|
| 45 |
define( 'POST_SMTP_PATH', __DIR__ );
|
| 46 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
| 47 |
-
define( 'POST_SMTP_VER', '2.0.
|
| 48 |
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
|
| 49 |
define( 'POST_SMTP_RELEASE_MESSAGE', 'We have a new Facebook group, feel free to join.' );
|
| 50 |
define( 'POST_SMTP_RELEASE_URL', 'https://www.facebook.com/groups/post.smtp' );
|
|
@@ -142,3 +142,4 @@ function post_setupPostman() {
|
|
| 142 |
$kevinCostner = new Postman( __FILE__, POST_SMTP_VER );
|
| 143 |
do_action( 'post_smtp_init');
|
| 144 |
}
|
|
|
| 6 |
* Plugin Name: Post SMTP
|
| 7 |
* Plugin URI: https://wordpress.org/plugins/post-smtp/
|
| 8 |
* Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes!
|
| 9 |
+
* Version: 2.0.9
|
| 10 |
* Author: Yehuda Hassine
|
| 11 |
* Text Domain: post-smtp
|
| 12 |
* Author URI: https://postmansmtp.com
|
| 44 |
define( 'POST_SMTP_BASE', __FILE__ );
|
| 45 |
define( 'POST_SMTP_PATH', __DIR__ );
|
| 46 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
| 47 |
+
define( 'POST_SMTP_VER', '2.0.9' );
|
| 48 |
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
|
| 49 |
define( 'POST_SMTP_RELEASE_MESSAGE', 'We have a new Facebook group, feel free to join.' );
|
| 50 |
define( 'POST_SMTP_RELEASE_URL', 'https://www.facebook.com/groups/post.smtp' );
|
| 142 |
$kevinCostner = new Postman( __FILE__, POST_SMTP_VER );
|
| 143 |
do_action( 'post_smtp_init');
|
| 144 |
}
|
| 145 |
+
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehuda@m
|
|
| 4 |
Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
|
| 5 |
Requires at least: 3.9
|
| 6 |
Tested up to: 5.3.2
|
| 7 |
-
Stable tag: 2.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -286,6 +286,10 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
|
|
| 286 |
|
| 287 |
== Changelog ==
|
| 288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
= 2.0.8 - 2020-01-12
|
| 290 |
* Updated: Reply-To header bug
|
| 291 |
|
| 4 |
Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
|
| 5 |
Requires at least: 3.9
|
| 6 |
Tested up to: 5.3.2
|
| 7 |
+
Stable tag: 2.0.9
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 286 |
|
| 287 |
== Changelog ==
|
| 288 |
|
| 289 |
+
= 2.0.9 - 2020-01-13
|
| 290 |
+
* Fixed: Notify on error bug - crash site
|
| 291 |
+
* Fixed: From header
|
| 292 |
+
|
| 293 |
= 2.0.8 - 2020-01-12
|
| 294 |
* Updated: Reply-To header bug
|
| 295 |
|
