Ticket #35069: 35069-2.diff
File 35069-2.diff, 673 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/pluggable.php
237 237 238 238 /** 239 239 * Filter the wp_mail() arguments. 240 * Expects a return array. If an array is not returned, we'll bail here 241 * and assume that wp_mail has been short-circuited. 240 242 * 241 243 * @since 2.2.0 242 244 * … … 245 247 */ 246 248 $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) ); 247 249 250 if ( ! is_array( $atts ) ) { 251 return $atts; 252 } 253 248 254 if ( isset( $atts['to'] ) ) { 249 255 $to = $atts['to']; 250 256 }