Skip to content

Commit e4147dc

Browse files
committed
Mail: Add missing embeds key for the wp_mail_succeeded action's $mail_data param.
Follow-up to [60698]. Props iflairwebtechnologies, SirLouen, johnbillion. See #28059. Fixes #64348. git-svn-id: https://develop.svn.wordpress.org/trunk@61352 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3fc6489 commit e4147dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/wp-includes/pluggable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
618618
*/
619619
do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );
620620

621-
$mail_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
621+
$mail_data = compact( 'to', 'subject', 'message', 'headers', 'attachments', 'embeds' );
622622

623623
// Send!
624624
try {

tests/phpunit/tests/pluggable/wpMail.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ public function test_phpmailer_exception_thrown() {
446446
'message' => 'Test Message',
447447
'headers' => array(),
448448
'attachments' => array(),
449+
'embeds' => array(),
449450
'phpmailer_exception_code' => 2,
450451
);
451452

0 commit comments

Comments
 (0)