Version Description
- 2021-02-14
- Update: Chrome extension URL change
- Fixed: Double save when extension save to option
Download this release
Release Info
Developer | yehudah |
Plugin | Post SMTP Mailer/Email Log |
Version | 2.0.22 |
Comparing to | |
See all releases |
Code changes from version 2.0.21 to 2.0.22
Postman/Extensions/Core/Notifications/PostmanNotify.php
CHANGED
@@ -224,7 +224,7 @@ class PostmanNotify {
|
|
224 |
return;
|
225 |
}
|
226 |
|
227 |
-
$url = 'https://postmansmtp.com/
|
228 |
|
229 |
$args = array(
|
230 |
'body' => array(
|
@@ -233,6 +233,14 @@ class PostmanNotify {
|
|
233 |
);
|
234 |
|
235 |
$response = wp_remote_post( $url , $args );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
}
|
237 |
}
|
238 |
|
@@ -241,4 +249,4 @@ class PostmanNotify {
|
|
241 |
printf( $optionPattern, $optionKey, $optionKey == $currentKey ? 'selected="selected"' : '', $label );
|
242 |
}
|
243 |
}
|
244 |
-
new PostmanNotify();
|
224 |
return;
|
225 |
}
|
226 |
|
227 |
+
$url = 'https://chrome.postmansmtp.com/' . $uid;
|
228 |
|
229 |
$args = array(
|
230 |
'body' => array(
|
233 |
);
|
234 |
|
235 |
$response = wp_remote_post( $url , $args );
|
236 |
+
|
237 |
+
if ( is_wp_error( $response ) ) {
|
238 |
+
error_log( 'Chrome notification error: ' . $response->get_error_message() );
|
239 |
+
}
|
240 |
+
|
241 |
+
if ( wp_remote_retrieve_response_code( $response ) !== 200 ) {
|
242 |
+
error_log( 'Chrome notification error HTTP Error:' . wp_remote_retrieve_response_code( $response ) );
|
243 |
+
}
|
244 |
}
|
245 |
}
|
246 |
|
249 |
printf( $optionPattern, $optionKey, $optionKey == $currentKey ? 'selected="selected"' : '', $label );
|
250 |
}
|
251 |
}
|
252 |
+
new PostmanNotify();
|
Postman/Postman-Configuration/PostmanConfigurationController.php
CHANGED
@@ -569,7 +569,7 @@ class PostmanConfigurationController {
|
|
569 |
<td>
|
570 |
<input type="checkbox" id="notification_use_chrome" name="postman_options[notification_use_chrome]">
|
571 |
<a target="_blank" class="" href="https://chrome.google.com/webstore/detail/npklmbkpbknkmbohdbpikeidiaekjoch">
|
572 |
-
<?php _e( 'You can download the chrome extension here.', 'post-smtp' ); ?>
|
573 |
</a>
|
574 |
</td>
|
575 |
</tr>
|
569 |
<td>
|
570 |
<input type="checkbox" id="notification_use_chrome" name="postman_options[notification_use_chrome]">
|
571 |
<a target="_blank" class="" href="https://chrome.google.com/webstore/detail/npklmbkpbknkmbohdbpikeidiaekjoch">
|
572 |
+
<?php _e( 'You can download the chrome extension here (if link not available, check later).', 'post-smtp' ); ?>
|
573 |
</a>
|
574 |
</td>
|
575 |
</tr>
|
Postman/PostmanInputSanitizer.php
CHANGED
@@ -21,6 +21,10 @@ if ( ! class_exists( 'PostmanInputSanitizer' ) ) {
|
|
21 |
*/
|
22 |
public function sanitize( $input ) {
|
23 |
|
|
|
|
|
|
|
|
|
24 |
$this->logger->debug( 'Sanitizing data before storage' );
|
25 |
|
26 |
$new_input = array();
|
21 |
*/
|
22 |
public function sanitize( $input ) {
|
23 |
|
24 |
+
if ( array_key_exists( 'external_option', $input ) ) {
|
25 |
+
return $input;
|
26 |
+
}
|
27 |
+
|
28 |
$this->logger->debug( 'Sanitizing data before storage' );
|
29 |
|
30 |
$new_input = array();
|
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
|
@@ -35,10 +35,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
35 |
define( 'POST_SMTP_BASE', __FILE__ );
|
36 |
define( 'POST_SMTP_PATH', __DIR__ );
|
37 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
38 |
-
define( 'POST_SMTP_VER', '2.0.
|
39 |
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
|
40 |
-
define( 'POST_SMTP_RELEASE_MESSAGE', "
|
41 |
-
define( 'POST_SMTP_RELEASE_URL', 'https://
|
42 |
|
43 |
$postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) );
|
44 |
$required_php_version = version_compare( PHP_VERSION, '5.6.0', '<' );
|
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.22
|
10 |
* Author: Yehuda Hassine
|
11 |
* Text Domain: post-smtp
|
12 |
* Author URI: https://postmansmtp.com
|
35 |
define( 'POST_SMTP_BASE', __FILE__ );
|
36 |
define( 'POST_SMTP_PATH', __DIR__ );
|
37 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
38 |
+
define( 'POST_SMTP_VER', '2.0.22' );
|
39 |
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
|
40 |
+
define( 'POST_SMTP_RELEASE_MESSAGE', "*** IMPORTANT TO READ *** - Chrome Extension URL change." );
|
41 |
+
define( 'POST_SMTP_RELEASE_URL', 'https://postmansmtp.com/chrome-extension-update/' );
|
42 |
|
43 |
$postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) );
|
44 |
$required_php_version = version_compare( PHP_VERSION, '5.6.0', '<' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehudaha
|
|
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.6
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -281,6 +281,10 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
|
|
281 |
|
282 |
== Changelog ==
|
283 |
|
|
|
|
|
|
|
|
|
284 |
= 2.0.21 - 2021-02-11
|
285 |
* Fixed: Security issue - nonce validation.
|
286 |
* Fixed: Class ‘PostmanViewController’ not found
|
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.6
|
7 |
+
Stable tag: 2.0.22
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
281 |
|
282 |
== Changelog ==
|
283 |
|
284 |
+
= 2.0.22 - 2021-02-14
|
285 |
+
* Update: Chrome extension URL change
|
286 |
+
* Fixed: Double save when extension save to option
|
287 |
+
|
288 |
= 2.0.21 - 2021-02-11
|
289 |
* Fixed: Security issue - nonce validation.
|
290 |
* Fixed: Class ‘PostmanViewController’ not found
|