diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 098024b083..37fda9e412 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -384,6 +384,15 @@ if ( ! function_exists( 'wp_mail' ) ) : $phpmailer->Body = ''; $phpmailer->AltBody = ''; + /* + * Reset encoding to 8-bit, as it may have been automatically downgraded + * to 7-bit by PHPMailer (based on the body contents) in a previous call + * to wp_mail(). + * + * See https://core.trac.wordpress.org/ticket/33972 + */ + $phpmailer->Encoding = PHPMailer\PHPMailer\PHPMailer::ENCODING_8BIT; + // Set "From" name and email. // If we don't have a name from the input headers. diff --git a/wp-includes/version.php b/wp-includes/version.php index 7509fc9a58..edc566288d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-beta3-61130'; +$wp_version = '6.9-beta3-61131'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.