Fixed email styles for multipart emails, closes #7033

This commit is contained in:
Claudio Sanches 2015-01-02 10:55:47 -02:00
parent 0accdf6f10
commit 37ea5ee65a
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ class WC_Email extends WC_Settings_API {
*/
public function style_inline( $content ) {
// make sure we only inline CSS for html emails
if ( 'text/html' == $this->get_content_type() ) {
if ( in_array( $this->get_content_type(), array( 'text/html', 'multipart/alternative' ) ) ) {
// get CSS styles
ob_start();