Strip tags from subject

#9706
This commit is contained in:
Mike Jolley 2016-01-06 12:38:22 +00:00
parent 9a0233bb04
commit 918b84ee3a
1 changed files with 1 additions and 1 deletions

View File

@ -301,6 +301,6 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response {
$mailer = WC()->mailer();
$message = $mailer->wrap_message( $subject, $message );
$mailer->send( ! empty( $new_order_settings['recipient'] ) ? $new_order_settings['recipient'] : get_option( 'admin_email' ), $subject, $message );
$mailer->send( ! empty( $new_order_settings['recipient'] ) ? $new_order_settings['recipient'] : get_option( 'admin_email' ), strip_tags( $subject ), $message );
}
}