WordPress.org

Make WordPress Core

Ticket #35598: 35598.diff

File 35598.diff, 674 bytes (added by Kau-Boy, 6 years ago)
  • src/wp-includes/pluggable.php

     
    535535                 * @param WP_Error $error A WP_Error object with the phpmailerException code, message, and an array
    536536                 *                        containing the mail recipient, subject, message, headers, and attachments.
    537537                 */
    538                 do_action( 'wp_mail_failed', new WP_Error( $e->getCode(), $e->getMessage(), $mail_error_data ) );
     538                do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_error_data ) );
    539539
    540540                return false;
    541541        }