diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-04-18 20:06:44 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-04-18 20:06:44 +0000 |
commit | 0bf9ab11082db7ee8feb2a2dc56829c4caf72913 (patch) | |
tree | e0e2f4d9859866998dde7fc88874568bbadda07e /postman-smtp.php | |
parent | cfabde5bc30b3a23afad0e0c680658f5edff9236 (diff) | |
download | Post-SMTP-0bf9ab11082db7ee8feb2a2dc56829c4caf72913.zip |
* remove mailgun docs
* fix js error ($)
* fix mail function param
* script for dismiss "not configured.." message
git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1860742 b8457f37-d9ea-0310-8a92-e5e31aec5664
Diffstat (limited to 'postman-smtp.php')
-rw-r--r-- | postman-smtp.php | 31 |
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' ); } |