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

Props Ankit K Gupta, maweder.
Fixes #35781 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@36688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-02-24 17:37:36 +00:00
parent 432969af21
commit 516756e370

View File

@ -478,7 +478,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
return $phpmailer->Send(); return $phpmailer->Send();
} catch ( phpmailerException $e ) { } 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. * Fires after a phpmailerException is caught.