From 19000f27b901ed787e2130239ad2bc97b8cca7ac Mon Sep 17 00:00:00 2001 From: yehudah Date: Mon, 23 Jul 2018 15:13:28 +0000 Subject: 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 --- Postman/Postman-Configuration/PostmanSmtpDiscovery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Postman/Postman-Configuration/PostmanSmtpDiscovery.php') 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; } -- cgit v1.2.3