summaryrefslogtreecommitdiff
path: root/postman-smtp.php
diff options
context:
space:
mode:
Diffstat (limited to 'postman-smtp.php')
-rw-r--r--postman-smtp.php31
1 files changed, 29 insertions, 2 deletions
diff --git a/postman-smtp.php b/postman-smtp.php
index 4504808..3b8e88f 100644
--- a/postman-smtp.php
+++ b/postman-smtp.php
@@ -4,7 +4,7 @@
* 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: 1.8.3
+ * Version: 1.8.4
* Author: Jason Hendriks, Yehuda Hassine
* Text Domain: post-smtp
* Author URI: https://postmansmtp.com
@@ -58,6 +58,33 @@ function post_smtp_plugin_admin_notice() {
}
/**
+ * @todo
+ */
+function post_dismiss_not_configured() {
+ ?>
+ <script>
+ (function($) {
+ $(document).on('click','.postman-not-configured-notice .notice-dismiss', function(e) {
+ e.preventDefault();
+
+ var $this = $(this);
+ var args = {
+ action: 'dismiss_version_notify',
+ security: $('.postman-not-configured-notice').find('.security').val(),
+ version: 'not_configured',
+ };
+
+ $.post(ajaxurl, args, function() {
+ $this.parent().slideUp();
+ });
+ });
+ })(jQuery);
+ </script>
+<?php
+}
+add_action( 'admin_footer', 'post_dismiss_not_configured' );
+
+/**
* Create the main Postman class to start Postman
*
* @param unknown $startingMemory
@@ -72,5 +99,5 @@ function post_start( $startingMemory ) {
*/
function post_setupPostman() {
require_once 'Postman/Postman.php';
- $kevinCostner = new Postman( __FILE__, '1.8.3' );
+ $kevinCostner = new Postman( __FILE__, '1.8.4' );
}