mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
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:
parent
abae151cbd
commit
71788d7c89
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user