Only wordwrap plain emails

This commit is contained in:
claudiulodro 2018-07-06 13:29:01 -07:00
parent 404fbca655
commit 38324edc71
1 changed files with 2 additions and 2 deletions

View File

@ -499,12 +499,12 @@ class WC_Email extends WC_Settings_API {
$this->sending = true;
if ( 'plain' === $this->get_email_type() ) {
$email_content = preg_replace( $this->plain_search, $this->plain_replace, strip_tags( $this->get_content_plain() ) );
$email_content = wordwrap( preg_replace( $this->plain_search, $this->plain_replace, strip_tags( $this->get_content_plain() ) ), 70 );
} else {
$email_content = $this->get_content_html();
}
return wordwrap( $email_content, 70 );
return $email_content;
}
/**