Changeset 2015343
- Timestamp:
- 01/19/2019 03:40:18 PM (7 years ago)
- Location:
- socketlabs
- Files:
-
- 4 edited
-
tags/1.0.10/README.txt (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/class-socketlabs-mailer.php (modified) (2 diffs)
-
trunk/socketlabs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
socketlabs/tags/1.0.10/README.txt
r1957144 r2015343 3 3 Tags: email, injection, smtp, mailer, wp_mail, mailing, deliverability 4 4 Requires at least: 3.0.1 5 Tested up to: 4.9.45 Tested up to: 5.0.1 6 6 Requires PHP: 3.0.1 7 7 Stable tag: 1.0.10 -
socketlabs/trunk/README.txt
r1996702 r2015343 3 3 Tags: email, injection, smtp, mailer, wp_mail, mailing, deliverability 4 4 Requires at least: 3.0.1 5 Tested up to: 5.0 .15 Tested up to: 5.0 6 6 Requires PHP: 3.0.1 7 Stable tag: 1.0.1 07 Stable tag: 1.0.11 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 51 51 == Change log 52 = 1.0.11 =` 53 * Fixed: From field from showing "From" in header value. 52 54 = 1.0.10 = 53 55 * Fixed: Removed api status check from plugin startup. -
socketlabs/trunk/includes/class-socketlabs-mailer.php
r1946261 r2015343 135 135 // Mainly for legacy -- process a From: header if it's there 136 136 case 'from': 137 138 $bracket_pos = strpos( $content, '<' ); 139 if ( $bracket_pos !== false ) { 140 // Text before the bracketed email is the "From" name. 141 if ( $bracket_pos > 0 ) { 142 $from_name = substr( $content, 0, $bracket_pos - 1 ); 143 $from_name = str_replace( '"', '', $from_name ); 144 $from_name = trim( $from_name ); 145 } 146 147 $from_email = substr( $content, $bracket_pos + 1 ); 148 $from_email = str_replace( '>', '', $from_email ); 149 150 151 $contact_match; 152 preg_match(self::contact_regex, $header, $contact_match); 153 154 if(isset($contact_match[2])){ 155 $this->apply_from(isset($contact_match[1]) ? $contact_match[1] : "", $contact_match[2]); 156 } 157 // Avoid setting an empty $from_email. 158 } elseif ( '' !== trim( $content ) ) { 137 $contact_match; 138 preg_match(self::contact_regex, $content, $contact_match); 139 140 if(isset($contact_match[2])){ 141 $this->apply_from(isset($contact_match[1]) ? $contact_match[1] : "", $contact_match[2]); 142 } 143 elseif ( '' !== trim( $content ) ) { 159 144 $this->apply_from("", trim( $content )); 160 145 } … … 172 157 } 173 158 174 // Avoid setting an empty $content_type.159 // Avoid setting an empty $content_type. 175 160 } elseif ( '' !== trim( $content ) ) { 176 161 $this->api_message["Charset"] = apply_filters( 'wp_mail_charset', trim( $content ) ); -
socketlabs/trunk/socketlabs.php
r1957144 r2015343 17 17 * Plugin URI: https://github.com/socketlabs/wordpress 18 18 * Description: Send emails using your SocketLabs account. 19 * Version: 1.0.1 019 * Version: 1.0.11 20 20 * Author: SocketLabs 21 21 * Author URI: https://socketlabs.com/
Note: See TracChangeset
for help on using the changeset viewer.