Make WordPress Core

Changeset 61386


Ignore:
Timestamp:
12/16/2025 11:51:05 AM (8 weeks ago)
Author:
johnbillion
Message:

Mail: Update some docblocks relating to inline email attachments.

See #28059, #64224

File:
1 edited

Legend:

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

    r61352 r61386  
    174174     * @since 5.5.0 is_email() is used for email validation,
    175175     *              instead of PHPMailer's default validator.
    176      * @since 6.9.0 Added $embeds parameter.
     176     * @since 6.9.0 The `$embeds` parameter was added.
    177177     * @since 6.9.0 Improved Content-Type header handling for multipart messages.
    178178     *
     
    194194         *
    195195         * @since 2.2.0
     196         * @since 6.9.0 The `$embeds` element was added to the `$args` array.
    196197         *
    197198         * @param array $args {
     
    216217         *
    217218         * @since 5.7.0
     219         * @since 6.9.0 The `$embeds` element was added to the `$atts` array.
    218220         *
    219221         * @param null|bool $return Short-circuit return value.
     
    574576                 *
    575577                 * @param array $args {
    576                  *     An array of arguments for `addEmbeddedImage()`.
     578                 *     An array of arguments for PHPMailer's addEmbeddedImage() method.
     579                 *
    577580                 *     @type string $path        The path to the file.
    578581                 *     @type string $cid         The Content-ID of the image. Default: The key in the embeds array.
     
    633636             *
    634637             * @since 5.9.0
     638             * @since 6.9.0 The `$embeds` element was added to the `$mail_data` array.
    635639             *
    636640             * @param array $mail_data {
    637              *     An array containing the email recipient(s), subject, message, headers, and attachments.
     641             *     An array containing the email recipient(s), subject, message, headers, attachments, and embeds.
    638642             *
    639643             *     @type string[] $to          Email addresses to send message.
     
    657661             *
    658662             * @param WP_Error $error A WP_Error object with the PHPMailer\PHPMailer\Exception message, and an array
    659              *                        containing the mail recipient, subject, message, headers, and attachments.
     663             *                        containing the mail recipient, subject, message, headers, attachments, and embeds.
    660664             */
    661665            do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_data ) );
Note: See TracChangeset for help on using the changeset viewer.