Ticket #25239: 25239.patch
File 25239.patch, 1.3 KB (added by , 6 years ago) |
---|
-
trunk/wp-includes/default-constants.php
133 133 define( 'MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS ); 134 134 define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS ); 135 135 /**#@-*/ 136 137 /** 138 * Determines if PHPMailer->setFrom() will be called with auto Sender to true or false 139 * If set to true, php mail function will be call with the -f option 140 * 141 * @since 5.0 142 */ 143 if ( ! defined( 'WP_MAIL_AUTO_SENDER' ) ) { 144 define( 'WP_MAIL_AUTO_SENDER', false ); // boolean 145 } 136 146 } 137 147 138 148 /** -
trunk/wp-includes/pluggable.php
357 357 $from_name = apply_filters( 'wp_mail_from_name', $from_name ); 358 358 359 359 try { 360 $phpmailer->setFrom( $from_email, $from_name, false);360 $phpmailer->setFrom( $from_email, $from_name, WP_MAIL_AUTO_SENDER ); 361 361 } catch ( phpmailerException $e ) { 362 362 $mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' ); 363 363 $mail_error_data['phpmailer_exception_code'] = $e->getCode();