Make WordPress Core

Changeset 61352


Ignore:
Timestamp:
12/05/2025 01:38:48 AM (2 months ago)
Author:
westonruter
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r61321 r61352  
    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!
  • trunk/tests/phpunit/tests/pluggable/wpMail.php

    r61201 r61352  
    447447            'headers'                  => array(),
    448448            'attachments'              => array(),
     449            'embeds'                   => array(),
    449450            'phpmailer_exception_code' => 2,
    450451        );
Note: See TracChangeset for help on using the changeset viewer.