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 | 4479391721fe40b39d7dc06e639e354d316faa43 (patch) | |
tree | e0e2f4d9859866998dde7fc88874568bbadda07e /Postman/Postman.php | |
parent | 871bbe5d0895e47bc7fc4dcf2feddaaaaad71000 (diff) | |
download | Post-SMTP-4479391721fe40b39d7dc06e639e354d316faa43.zip |
* remove mailgun docs
* fix js error ($)
* fix mail function param
* script for dismiss "not configured.." message
Diffstat (limited to 'Postman/Postman.php')
-rw-r--r-- | Postman/Postman.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Postman/Postman.php b/Postman/Postman.php index b1779f2..8b83c38 100644 --- a/Postman/Postman.php +++ b/Postman/Postman.php @@ -367,15 +367,21 @@ class Postman { if ( $this->logger->isDebug() ) { $this->logger->debug( 'Displaying configuration required warning' ); } - $message = sprintf( PostmanTransportRegistry::getInstance()->getReadyMessage() ); + $msg = PostmanTransportRegistry::getInstance()->getReadyMessage(); + $message = sprintf( $msg['message'] ); $goToSettings = sprintf( '<a href="%s">%s</a>', PostmanUtils::getSettingsPageUrl(), __( 'Settings', Postman::TEXT_DOMAIN ) ); $goToEmailLog = sprintf( '%s', _x( 'Email Log', 'The log of Emails that have been delivered', Postman::TEXT_DOMAIN ) ); if ( PostmanOptions::getInstance()->isMailLoggingEnabled() ) { $goToEmailLog = sprintf( '<a href="%s">%s</a>', PostmanUtils::getEmailLogPageUrl(), $goToEmailLog ); } $message .= (sprintf( ' %s | %s', $goToEmailLog, $goToSettings )); - ; - $this->messageHandler->printMessage( $message, PostmanMessageHandler::WARNING_CLASS ); + $message .= '<input type="hidden" name="security" class="security" value="' . wp_create_nonce('postsmtp') . '">'; + + $hide = get_option('postman_release_version_not_configured' ); + + if ( $msg['error'] == true && ! $hide ) { + $this->messageHandler->printMessage( $message, 'postman-not-configured-notice notice notice-error is-dismissible' ); + } } } |