Coding Standards: Fix WPCS issue in [46115].

See #43542.

git-svn-id: https://develop.svn.wordpress.org/trunk@46116 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-09-14 20:41:48 +00:00
parent 848a329478
commit 65b4c64440

View File

@ -454,7 +454,7 @@ if ( ! function_exists( 'wp_mail' ) ) :
if ( ! empty( $headers ) ) {
foreach ( (array) $headers as $name => $content ) {
// Only add custom headers not added automatically by PHPMailer.
if ( ! in_array( $name, array( 'MIME-Version', 'X-Mailer') ) ) {
if ( ! in_array( $name, array( 'MIME-Version', 'X-Mailer' ) ) ) {
$phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );
}
}