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

Props Ankit K Gupta, maweder.
Fixes #35781 for trunk.
Built from https://develop.svn.wordpress.org/trunk@36688


git-svn-id: http://core.svn.wordpress.org/trunk@36655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-02-24 17:38:27 +00:00
parent 15482d5d80
commit f170058209
2 changed files with 2 additions and 2 deletions

View File

@ -478,7 +478,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.

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36687';
$wp_version = '4.5-alpha-36688';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.