Docs: Fix some syntactical issues with the DocBlock for `wp_mail_failed` action, introduced in [34221].
Fixes #18926. git-svn-id: https://develop.svn.wordpress.org/trunk@34239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1d4b8ffd1d
commit
9ab1dfd03e
|
@ -536,13 +536,14 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
|
||||||
} catch ( phpmailerException $e ) {
|
} catch ( phpmailerException $e ) {
|
||||||
|
|
||||||
$mail_error_data = compact( $to, $subject, $message, $headers, $attachments );
|
$mail_error_data = compact( $to, $subject, $message, $headers, $attachments );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires after a phpmailerException is caught
|
* Fires after a phpmailerException is caught.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
* @param WP_Error A WP_Error object with the phpmailerException code, message and an array
|
* @param WP_Error $error A WP_Error object with the phpmailerException code, message, and an array
|
||||||
* containing the mail recipient, subject, message, headers and attachments
|
* containing the mail recipient, subject, message, headers, and attachments.
|
||||||
*/
|
*/
|
||||||
do_action( 'wp_mail_failed', new WP_Error( $e->getCode(), $e->getMessage(), $mail_error_data ) );
|
do_action( 'wp_mail_failed', new WP_Error( $e->getCode(), $e->getMessage(), $mail_error_data ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue