summaryrefslogtreecommitdiff
path: root/Postman
diff options
context:
space:
mode:
authorYehuda Hassine <yehuda@myinbox.in>2018-08-03 17:25:37 +0300
committerYehuda Hassine <yehuda@myinbox.in>2018-08-03 17:25:37 +0300
commitee059457f47c9bc6ffc5be080cbb42cb2fa2a3f2 (patch)
tree5fd19f2abe2bc64eed4fe97f3e47dd6bee078609 /Postman
parent5ba3d1036e32da18cc8f24a3c72c8cd5a418d7f3 (diff)
downloadPost-SMTP-ee059457f47c9bc6ffc5be080cbb42cb2fa2a3f2.zip
remove the most stupid feature ever - read the blog for mor detailes
Diffstat (limited to 'Postman')
-rw-r--r--Postman/PostmanOptions.php18
-rw-r--r--Postman/PostmanViewController.php2
2 files changed, 5 insertions, 15 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php
index 3357682..240b1aa 100644
--- a/Postman/PostmanOptions.php
+++ b/Postman/PostmanOptions.php
@@ -264,21 +264,11 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
return $this->options [ PostmanOptions::AUTHENTICATION_TYPE ]; }
}
public function getEncryptionType() {
- $port = $this->getPort();
- switch ($port):
- case 465:
- return 'ssl';
- break;
- case 587:
- return 'tls';
- break;
- case 2525:
- return 'tls';
- break;
- default:
- return isset( $this->options [ PostmanOptions::SECURITY_TYPE ] ) ? $this->options [ PostmanOptions::SECURITY_TYPE ] : 'none';
- endswitch;
+ if ( isset( $this->options [ PostmanOptions::SECURITY_TYPE ] ) ) {
+ return $this->options [ PostmanOptions::SECURITY_TYPE ];
+ }
}
+
public function getUsername() {
if ( defined( 'POST_SMTP_AUTH_USERNAME' ) ) {
return POST_SMTP_AUTH_USERNAME;
diff --git a/Postman/PostmanViewController.php b/Postman/PostmanViewController.php
index 7aeeae4..d2e6f45 100644
--- a/Postman/PostmanViewController.php
+++ b/Postman/PostmanViewController.php
@@ -307,7 +307,7 @@ if ( ! class_exists( 'PostmanViewController' ) ) {
echo '
<div class="updated settings-error notice is-dismissible">
<p>
- <strong>Version ' . $version . ' released with better compability for secure ports:</strong> <a target="_blank" href="https://postmansmtp.com/post-smtp-1-9-0-better-support-for-secure-delivery">Read Here</a>
+ <strong>Version ' . $version . ' I do mistakes too - A must read:</strong> <a target="_blank" href="https://postmansmtp.com/post-smtp-1-9-4-im-only-human/">Read Here</a>
</p>
<button style="z-index: 100;" data-version="'. $version . '" data-security="' . wp_create_nonce('postsmtp') .'" type="button" class="notice-dismiss postman-release-message">
<span class="screen-reader-text">Dismiss this notice.</span>