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

Merges [36688] to the 4.4 branch.

Props Ankit K Gupta, maweder.
Fixes #35781.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@37081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-03-25 17:06:17 +00:00
parent 9190db339e
commit 1633f01380

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.