Changeset 39086 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 11/02/2016 04:26:18 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r39051 r39086 473 473 474 474 $mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' ); 475 $mail_error_data['phpmailer_exception_code'] = $e->getCode(); 475 476 476 477 /** … … 479 480 * @since 4.4.0 480 481 * 481 * @param WP_Error $error A WP_Error object with the phpmailerException code,message, and an array482 * @param WP_Error $error A WP_Error object with the phpmailerException message, and an array 482 483 * containing the mail recipient, subject, message, headers, and attachments. 483 484 */ 484 do_action( 'wp_mail_failed', new WP_Error( $e->getCode(), $e->getMessage(), $mail_error_data ) );485 do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_error_data ) ); 485 486 486 487 return false;
Note: See TracChangeset
for help on using the changeset viewer.