Mail: Correct compact() usage in wp_mail().

Merges [36688] to the 4.4 branch.

Props Ankit K Gupta, maweder.
Fixes #35781.
Built from https://develop.svn.wordpress.org/branches/4.4@37081


git-svn-id: http://core.svn.wordpress.org/branches/4.4@37048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-03-25 17:07:27 +00:00
parent abae151cbd
commit 71788d7c89

View File

@ -541,7 +541,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
return $phpmailer->Send();
} catch ( phpmailerException $e ) {
$mail_error_data = compact( $to, $subject, $message, $headers, $attachments );
$mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
/**
* Fires after a phpmailerException is caught.