summaryrefslogtreecommitdiff
path: root/postman-smtp.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-04-18 20:06:44 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-04-18 20:06:44 +0000
commit4479391721fe40b39d7dc06e639e354d316faa43 (patch)
treee0e2f4d9859866998dde7fc88874568bbadda07e /postman-smtp.php
parent871bbe5d0895e47bc7fc4dcf2feddaaaaad71000 (diff)
downloadPost-SMTP-4479391721fe40b39d7dc06e639e354d316faa43.zip
* remove mailgun docs
* fix js error ($) * fix mail function param * script for dismiss "not configured.." message
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' );
}