mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
15482d5d80
commit
f170058209
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user