| 1 | Index: wp-includes/pluggable.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/pluggable.php (revision 11532) |
|---|
| 4 | +++ wp-includes/pluggable.php (working copy) |
|---|
| 5 | @@ -337,6 +337,14 @@ |
|---|
| 6 | } |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | + if ( !isset( $content_type ) || $content_type = 'text/plain' ) { |
|---|
| 10 | + // Ensure we don't send encoded quotes in plain text emails |
|---|
| 11 | + $encoded_quotes = array( '"', ''' ); |
|---|
| 12 | + $decoded_quotes = array( '"', "'" ); |
|---|
| 13 | + $subject = str_replace( $encoded_quotes, $decoded_quotes, $subject ); |
|---|
| 14 | + $message = str_replace( $encoded_quotes, $decoded_quotes, $message ); |
|---|
| 15 | + } |
|---|
| 16 | + |
|---|
| 17 | // Empty out the values that may be set |
|---|
| 18 | $phpmailer->ClearAddresses(); |
|---|
| 19 | $phpmailer->ClearAllRecipients(); |
|---|