Ticket #35781: 35781.2.patch
File 35781.2.patch, 985 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/pluggable.php
181 181 * @param array $args A compacted array of wp_mail() arguments, including the "to" email, 182 182 * subject, message, headers, and attachments values. 183 183 */ 184 $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments') );184 $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', $headers, $attachments ) ); 185 185 186 186 if ( isset( $atts['to'] ) ) { 187 187 $to = $atts['to']; … … 479 479 return $phpmailer->Send(); 480 480 } catch ( phpmailerException $e ) { 481 481 482 $mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments');482 $mail_error_data = compact( 'to', 'subject', 'message', $headers, $attachments ); 483 483 484 484 /** 485 485 * Fires after a phpmailerException is caught.