Changeset 5764
- Timestamp:
- 06/26/2007 08:18:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r5763 r5764 184 184 // Iterate through the raw headers 185 185 foreach ( $tempheaders as $header ) { 186 if ( strpos($header, ':') === false ) 187 continue; 186 188 // Explode them out 187 189 list( $name, $content ) = explode( ':', trim( $header ), 2 ); … … 208 210 if ( strpos( $content,';' ) !== false ) { 209 211 list( $type, $charset ) = explode( ';', $content ); 210 $content_type = trim( $ content_type );212 $content_type = trim( $type ); 211 213 $charset = trim( str_replace( array( 'charset=', '"' ), '', $charset ) ); 212 214 } else { … … 267 269 } 268 270 271 $content_type = apply_filters( 'wp_mail_content_type', $content_type ); 272 269 273 // Set whether it's plaintext or not, depending on $content_type 270 274 if ( $content_type == 'text/html' ) { … … 280 284 281 285 // Set the content-type and charset 282 $phpmailer->ContentType = apply_filters( 'wp_mail_content_type', $content_type );283 286 $phpmailer->CharSet = apply_filters( 'wp_mail_charset', $charset ); 284 287 … … 520 523 } 521 524 522 $message_headers = "MIME-Version: 1.0\n" 523 . "$from\n" 525 $message_headers = "$from\n" 524 526 . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 525 527
Note: See TracChangeset
for help on using the changeset viewer.