summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2020-01-21 20:34:49 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2020-01-21 20:34:49 +0000
commit4a3189d1c46a014c32365523e0f18b91bca92ed4 (patch)
treedbee37e447837d4670ce82287da3c6eafd384043
parent5ca998ddd8427110b1b7eec3261c5ccf3a94fb12 (diff)
downloadPost-SMTP-4a3189d1c46a014c32365523e0f18b91bca92ed4.zip
undefined notifications and version bump
-rw-r--r--Postman/PostmanOAuthToken.php24
-rw-r--r--postman-smtp.php4
-rw-r--r--readme.txt9
3 files changed, 30 insertions, 7 deletions
diff --git a/Postman/PostmanOAuthToken.php b/Postman/PostmanOAuthToken.php
index 1cd9634..81efbfe 100644
--- a/Postman/PostmanOAuthToken.php
+++ b/Postman/PostmanOAuthToken.php
@@ -45,10 +45,26 @@ if (! class_exists ( 'PostmanOAuthToken.php' )) {
*/
private function load() {
$a = get_option ( PostmanOAuthToken::OPTIONS_NAME );
- $this->setAccessToken ( $a [PostmanOAuthToken::ACCESS_TOKEN] );
- $this->setRefreshToken ( $a [PostmanOAuthToken::REFRESH_TOKEN] );
- $this->setExpiryTime ( $a [PostmanOAuthToken::EXPIRY_TIME] );
- $this->setVendorName ( $a [PostmanOAuthToken::VENDOR_NAME] );
+
+ if ( ! is_array( $a ) ) {
+ return;
+ }
+
+ if ( isset( $a [PostmanOAuthToken::ACCESS_TOKEN] ) ) {
+ $this->setAccessToken ( $a [PostmanOAuthToken::ACCESS_TOKEN] );
+ }
+
+ if ( isset( $a [PostmanOAuthToken::REFRESH_TOKEN] ) ) {
+ $this->setRefreshToken($a [PostmanOAuthToken::REFRESH_TOKEN]);
+ }
+
+ if ( isset( $a [PostmanOAuthToken::EXPIRY_TIME] ) ) {
+ $this->setExpiryTime($a [PostmanOAuthToken::EXPIRY_TIME]);
+ }
+
+ if ( isset( $a [PostmanOAuthToken::VENDOR_NAME] ) ) {
+ $this->setVendorName($a [PostmanOAuthToken::VENDOR_NAME]);
+ }
}
/**
diff --git a/postman-smtp.php b/postman-smtp.php
index e93ab37..0f11c37 100644
--- a/postman-smtp.php
+++ b/postman-smtp.php
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* Plugin Name: Post SMTP
* Plugin URI: https://wordpress.org/plugins/post-smtp/
* 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!
- * Version: 2.0.9
+ * Version: 2.0.10
* Author: Yehuda Hassine
* Text Domain: post-smtp
* Author URI: https://postmansmtp.com
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
define( 'POST_SMTP_BASE', __FILE__ );
define( 'POST_SMTP_PATH', __DIR__ );
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
-define( 'POST_SMTP_VER', '2.0.9' );
+define( 'POST_SMTP_VER', '2.0.10' );
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
define( 'POST_SMTP_RELEASE_MESSAGE', 'We have a new Facebook group, feel free to join.' );
define( 'POST_SMTP_RELEASE_URL', 'https://www.facebook.com/groups/post.smtp' );
diff --git a/readme.txt b/readme.txt
index 56d6e03..981edd5 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehuda@m
Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
Requires at least: 3.9
Tested up to: 5.3.2
-Stable tag: 2.0.9
+Stable tag: 2.0.10
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -286,6 +286,13 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
== Changelog ==
+= 2.0.10 - 2020-01-21
+* Fixed: HTML content type
+* Fixed: Sendgrid crash when has duplicates recipients (bypass, Sendgrid issue).
+* Fixed: Few OAuth undefined notifications
+* Fixed: Duplicate Emails - When you have notify and confirm (Ninja forms, etc..)
+* Fixed: Logs wp_error convert
+
= 2.0.9 - 2020-01-13
* Fixed: Notify on error bug - crash site
* Fixed: From header