WordPress.org

Make WordPress Core

Ticket #9913: 9913.2.diff

File 9913.2.diff, 707 bytes (added by Speedboxer, 5 years ago)

Remove added parameter

  • wp-includes/pluggable.php

     
    337337                } 
    338338        } 
    339339 
     340        if ( !isset( $content_type ) || $content_type = 'text/plain' ) { 
     341                // Ensure we don't send encoded quotes in plain text emails 
     342                $encoded_quotes = array( '"', ''' ); 
     343                $decoded_quotes = array( '"', "'" ); 
     344                $subject = str_replace( $encoded_quotes, $decoded_quotes, $subject ); 
     345                $message = str_replace( $encoded_quotes, $decoded_quotes, $message ); 
     346        } 
     347 
    340348        // Empty out the values that may be set 
    341349        $phpmailer->ClearAddresses(); 
    342350        $phpmailer->ClearAllRecipients();