@@ 719-723 (lines=5) @@ | ||
716 | Give()->emails->__set( 'heading', $this->preview_email_template_tags( $this->get_email_header( $form_id ) ) ); |
|
717 | ||
718 | // Format plain content type email. |
|
719 | if ( 'text/plain' === $content_type ) { |
|
720 | Give()->emails->__set( 'html', false ); |
|
721 | Give()->emails->__set( 'template', 'none' ); |
|
722 | $message = strip_tags( $message ); |
|
723 | } |
|
724 | ||
725 | if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
|
726 | Give()->emails->form_id = $form_id; |
|
@@ 807-811 (lines=5) @@ | ||
804 | // Set email header. |
|
805 | Give()->emails->__set( 'heading', give_do_email_tags( $this->get_email_header( $form_id ), $email_tag_args ) ); |
|
806 | ||
807 | if ( 'text/plain' === $content_type ) { |
|
808 | Give()->emails->__set( 'html', false ); |
|
809 | Give()->emails->__set( 'template', 'none' ); |
|
810 | $message = strip_tags( $message ); |
|
811 | } |
|
812 | ||
813 | if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
|
814 | Give()->emails->form_id = $form_id; |