PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.20
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.20
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmEmail.php +6 -12 6.256.20 View file →
@@ -280,15 +280,11 @@
280 280 *
281 281 * @return void
282 282 */
283 283 private function set_is_plain_text() {
284 - if ( empty( $this->settings['email_style'] ) ) {
285 - // If `email_style` isn't set, use the `plain_text` checkbox.
286 - $this->is_plain_text = ! empty( $this->settings['plain_text'] );
287 - return;
284 + if ( $this->settings['plain_text'] ) {
285 + $this->is_plain_text = true;
288 286 }
289 -
290 - $this->is_plain_text = 'plain' === $this->settings['email_style'];
291 287 }
292 288
293 289 /**
294 290 * Set the include_user_info property
@@ -401,13 +397,12 @@
401 397 $pass_entry = clone $this->entry;
402 398 $mail_body = FrmEntriesHelper::replace_default_message(
403 399 $prev_mail_body,
404 400 array(
405 - 'id' => $this->entry->id,
406 - 'entry' => $pass_entry,
407 - 'plain_text' => $this->is_plain_text,
408 - 'user_info' => $this->include_user_info,
409 - 'table_style' => $this->settings['email_style'],
401 + 'id' => $this->entry->id,
402 + 'entry' => $pass_entry,
403 + 'plain_text' => $this->is_plain_text,
404 + 'user_info' => $this->include_user_info,
410 405 )
411 406 );
412 407
413 408 // Add the user info if it isn't already included
@@ -883,9 +878,8 @@
883 878 'attachments' => $this->attachments,
884 879 'plain_text' => $this->is_plain_text,
885 880 'form' => $this->form,
886 881 'entry' => $this->entry,
887 - 'email_style' => $this->settings['email_style'],
888 882 );
889 883 }
890 884
891 885 /**