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/Postman-Mail/PostmanTransportRegistry.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/Postman-Mail/PostmanTransportRegistry.php')
-rw-r--r-- | Postman/Postman-Mail/PostmanTransportRegistry.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Postman/Postman-Mail/PostmanTransportRegistry.php b/Postman/Postman-Mail/PostmanTransportRegistry.php index 77654eb..e86f1f4 100644 --- a/Postman/Postman-Mail/PostmanTransportRegistry.php +++ b/Postman/Postman-Mail/PostmanTransportRegistry.php @@ -229,12 +229,21 @@ class PostmanTransportRegistry { public function getReadyMessage() { if ( $this->getCurrentTransport()->isConfiguredAndReady() ) { if ( PostmanOptions::getInstance()->getRunMode() != PostmanOptions::RUN_MODE_PRODUCTION ) { - return __( 'Postman is in <em>non-Production</em> mode and is dumping all emails.', Postman::TEXT_DOMAIN ); + return array( + 'error' => true, + 'message' => __( 'Postman is in <em>non-Production</em> mode and is dumping all emails.', Postman::TEXT_DOMAIN ), + ); } else { - return __( 'Postman is configured.', Postman::TEXT_DOMAIN ); + return array( + 'error' => false, + 'message' => __( 'Postman is configured.', Postman::TEXT_DOMAIN ), + ); } } else { - return __( 'Postman is <em>not</em> configured and is mimicking out-of-the-box WordPress email delivery.', Postman::TEXT_DOMAIN ); + return array( + 'error' => true, + 'message' => __( 'Postman is <em>not</em> configured and is mimicking out-of-the-box WordPress email delivery.', Postman::TEXT_DOMAIN ), + ); } } } |