Make WordPress Core

Changeset 61393


Ignore:
Timestamp:
12/19/2025 03:10:40 AM (7 days ago)
Author:
peterwilsoncc
Message:

Mail: Add missing embeds key for the wp_mail_succeeded action's $mail_data param.

Follow-up to [60698].

Reviewed by peterwilsoncc.
Merges [61352] to the 6.9 branch.

Props iflairwebtechnologies, SirLouen, johnbillion, westonruter.
See #28059.
Fixes #64348.

Location:
branches/6.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/6.9

  • branches/6.9/src/wp-includes/pluggable.php

    r61201 r61393  
    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!
  • branches/6.9/tests/phpunit/tests/pluggable/wpMail.php

    r61201 r61393  
    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.