Ticket #4511: wp_mail_extr_skip.diff
| File wp_mail_extr_skip.diff, 845 bytes (added by , 19 years ago) |
|---|
-
wp-includes/pluggable.php
158 158 159 159 if ( !function_exists( 'wp_mail' ) ) : 160 160 function wp_mail( $to, $subject, $message, $headers = '' ) { 161 // Compact the input, apply the filters, and extract them back out 162 extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers' ) ) ); 163 161 164 global $phpmailer; 162 165 163 166 // (Re)create it, if it's gone missing … … 167 170 $phpmailer = new PHPMailer(); 168 171 } 169 172 170 // Compact the input, apply the filters, and extract them back out171 extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers' ) ), EXTR_SKIP );172 173 173 // Default headers 174 174 if ( empty( $headers ) ) { 175 175 $headers = array(