summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-07-23 15:13:28 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2018-07-23 15:13:28 +0000
commit19000f27b901ed787e2130239ad2bc97b8cca7ac (patch)
tree96915055ee7be043ac24abe3eeafda63f75f4126
parent2fcd770483c16eda4c9ba143fb855c8abcfe130c (diff)
downloadPost-SMTP-19000f27b901ed787e2130239ad2bc97b8cca7ac.zip
Removed deprecated functions from 7.2 + comment unready feature
git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1913616 b8457f37-d9ea-0310-8a92-e5e31aec5664
-rw-r--r--Postman/Postman-Configuration/PostmanSmtpDiscovery.php4
-rw-r--r--Postman/Postman-Mail/PostmanMessage.php2
-rw-r--r--Postman/Postman.php1
-rw-r--r--Postman/PostmanWpMail.php2
-rw-r--r--postman-smtp.php4
-rw-r--r--readme.txt5
6 files changed, 10 insertions, 8 deletions
diff --git a/Postman/Postman-Configuration/PostmanSmtpDiscovery.php b/Postman/Postman-Configuration/PostmanSmtpDiscovery.php
index 60728c6..2d568cd 100644
--- a/Postman/Postman-Configuration/PostmanSmtpDiscovery.php
+++ b/Postman/Postman-Configuration/PostmanSmtpDiscovery.php
@@ -84,7 +84,7 @@ if (! class_exists ( 'PostmanSmtpMappings' )) {
);
public static function getSmtpFromEmail($hostname) {
reset ( PostmanSmtpMappings::$emailDomain );
- while ( list ( $domain, $smtp ) = each ( PostmanSmtpMappings::$emailDomain ) ) {
+ foreach ( PostmanSmtpMappings::$emailDomain as $domain => $smtp ) {
if (strcasecmp ( $hostname, $domain ) == 0) {
return $smtp;
}
@@ -93,7 +93,7 @@ if (! class_exists ( 'PostmanSmtpMappings' )) {
}
public static function getSmtpFromMx($mx) {
reset ( PostmanSmtpMappings::$mxMappings );
- while ( list ( $domain, $smtp ) = each ( PostmanSmtpMappings::$mxMappings ) ) {
+ foreach ( PostmanSmtpMappings::$mxMappings as $domain => $smtp ) {
if (PostmanUtils::endswith ( $mx, $domain )) {
return $smtp;
}
diff --git a/Postman/Postman-Mail/PostmanMessage.php b/Postman/Postman-Mail/PostmanMessage.php
index 5280060..a85687e 100644
--- a/Postman/Postman-Mail/PostmanMessage.php
+++ b/Postman/Postman-Mail/PostmanMessage.php
@@ -61,7 +61,7 @@ if ( ! class_exists( 'PostmanMessage' ) ) {
function __call($name, $args) {
$class = new ReflectionClass(__CLASS__);
- $methods = $class->getMethods(ReflectionMethod::IS_PUBLIC);
+ $methods = $class->getMethods(ReflectionMethod::IS_PUBLIC );
$message = __( '<code>%1$s</code> method of a <code>PostmanMessage</code> object is <strong>not supported</strong>. Use one of the following methods <pre><code>%2$s</code></pre>', Postman::TEXT_DOMAIN );
diff --git a/Postman/Postman.php b/Postman/Postman.php
index ba639e3..ad86b57 100644
--- a/Postman/Postman.php
+++ b/Postman/Postman.php
@@ -470,4 +470,3 @@ if ( ! function_exists( 'str_getcsv' ) ) {
return PostmanUtils::postman_strgetcsv_impl( $string );
}
}
-
diff --git a/Postman/PostmanWpMail.php b/Postman/PostmanWpMail.php
index eadfe60..f5fcf7f 100644
--- a/Postman/PostmanWpMail.php
+++ b/Postman/PostmanWpMail.php
@@ -166,7 +166,7 @@ if ( ! class_exists( 'PostmanWpMail' ) ) {
// apply the WordPress filters
// may impact the from address, from email, charset and content-type
$message->applyFilters();
- do_action_ref_array( 'phpmailer_init', array( &$message ) );
+ //do_action_ref_array( 'phpmailer_init', array( &$message ) );
// create the body parts (if they are both missing)
if ( $message->isBodyPartsEmpty() ) {
diff --git a/postman-smtp.php b/postman-smtp.php
index 31e5e50..c7ad3ff 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.9.1
+ * Version: 1.9.2
* Author: Jason Hendriks, Yehuda Hassine
* Text Domain: post-smtp
* Author URI: https://postmansmtp.com
@@ -123,5 +123,5 @@ function post_start( $startingMemory ) {
*/
function post_setupPostman() {
require_once 'Postman/Postman.php';
- $kevinCostner = new Postman( __FILE__, '1.9.1' );
+ $kevinCostner = new Postman( __FILE__, '1.9.2' );
}
diff --git a/readme.txt b/readme.txt
index f091fe9..1a1c84f 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehuda@m
Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
Requires at least: 3.9
Tested up to: 4.9.5
-Stable tag: 1.9.1
+Stable tag: 1.9.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -296,6 +296,9 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
== Changelog ==
+= 1.9.2 - 2018-07-23
+Removed deprecated functions from 7.2 + comment unready feature
+
= 1.9.1 - 2018-07-22
Syntx stupid mistake