From 516756e370d156a291dd88fab95b3bbba3e5ccb4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Feb 2016 17:37:36 +0000 Subject: [PATCH] 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 --- src/wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index 5c467aab0a..8784ed071f 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -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.