WordPress.org

Make WordPress Core

Ticket #18926: pluggable.php.diff

File pluggable.php.diff, 386 bytes (added by soulseekah, 6 years ago)

using action and WP_Error

  • wp-includes/pluggable.php

     
    433433        try {
    434434                $phpmailer->Send();
    435435        } catch ( phpmailerException $e ) {
     436                do_action( 'wp_mail_fail', new WP_Error( $e->getCode(), $e->getMessage() ) );
    436437                return false;
    437438        }
    438439