Changeset 5762
- Timestamp:
- 06/26/2007 06:28:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r5761 r5762 194 194 195 195 // Mainly for legacy -- process a From: header if it's there 196 if ( $name == 'From') {196 if ( 'from' == strtolower($name) ) { 197 197 if ( strpos($content, '<' ) !== false ) { 198 198 // So... making my life hard again? … … 207 207 $from_name = trim( $content ); 208 208 } 209 } elseif ( $name == 'Content-Type') {209 } elseif ( 'content-type' == strtolower($name) ) { 210 210 if ( strpos( $content,';' ) !== false ) { 211 211 list( $type, $charset ) = explode( ';', $content ); … … 282 282 283 283 // Set the content-type and charset 284 $phpmailer->ContentType = apply_filters( 'wp_mail_content_type', 'text/plain');284 $phpmailer->ContentType = apply_filters( 'wp_mail_content_type', $content_type ); 285 285 $phpmailer->CharSet = apply_filters( 'wp_mail_charset', $charset ); 286 286
Note: See TracChangeset
for help on using the changeset viewer.