Skip to content

Commit

Permalink
fix issue with settings HTML being escaped for email content
Browse files Browse the repository at this point in the history
  • Loading branch information
RensTillmann committed Jun 18, 2019
1 parent 95bb4a0 commit d5e56aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/includes/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public static function fields( $settings=null, $default=0 ) {
'email_body' => array(
'name' => esc_html__( 'Body content:', 'super-forms' ),
'desc' => esc_html__( 'Use a custom email body. Use {loop_fields} to retrieve the loop.', 'super-forms' ),
'default' => self::get_value( $default, 'email_body', $settings, esc_html__( '<table cellpadding="5">{loop_fields}</table>', 'super-forms' ) ),
'default' => self::get_value( $default, 'email_body', $settings, '<table cellpadding="5">{loop_fields}</table>' ),
'type'=>'textarea',
'filter'=>true,
'parent'=>'send',
Expand All @@ -266,7 +266,7 @@ public static function fields( $settings=null, $default=0 ) {
'name' => esc_html__( 'Field Loop:', 'super-forms' ),
'label' => esc_html__( '{loop_fields} inside the email body will be replaced with this content', 'super-forms' ),
'desc' => esc_html__( 'Use a custom loop. Use {loop_label} and {loop_value} to retrieve values.', 'super-forms' ),
'default' => self::get_value( $default, 'email_loop', $settings, esc_html__( '<tr><th valign="top" align="right">{loop_label}</th><td>{loop_value}</td></tr>', 'super-forms' ) ),
'default' => self::get_value( $default, 'email_loop', $settings, '<tr><th valign="top" align="right">{loop_label}</th><td>{loop_value}</td></tr>' ),
'type'=>'textarea',
'filter'=>true,
'parent'=>'send',
Expand Down Expand Up @@ -441,7 +441,7 @@ public static function fields( $settings=null, $default=0 ) {
'confirm_body' => array(
'name' => esc_html__( 'Body content:', 'super-forms' ),
'desc' => esc_html__( 'Use a custom email body. Use {loop_fields} to retrieve the loop.', 'super-forms' ),
'default' => self::get_value( $default, 'confirm_body', $settings, esc_html__( '<table cellpadding="5">{loop_fields}</table>', 'super-forms' ) ),
'default' => self::get_value( $default, 'confirm_body', $settings, '<table cellpadding="5">{loop_fields}</table>' ),
'type'=>'textarea',
'filter'=>true,
'parent'=>'confirm',
Expand All @@ -462,7 +462,7 @@ public static function fields( $settings=null, $default=0 ) {
'name' => esc_html__( 'Field Loop:', 'super-forms' ),
'label' => esc_html__( '{loop_fields} inside the email body will be replaced with this content', 'super-forms' ),
'desc' => esc_html__( 'Use a custom loop. Use {loop_label} and {loop_value} to retrieve values.', 'super-forms' ),
'default' => self::get_value( $default, 'confirm_email_loop', $settings, esc_html__( '<tr><th valign="top" align="right">{loop_label}</th><td>{loop_value}</td></tr>', 'super-forms' ) ),
'default' => self::get_value( $default, 'confirm_email_loop', $settings, '<tr><th valign="top" align="right">{loop_label}</th><td>{loop_value}</td></tr>' ),
'type'=>'textarea',
'filter'=>true,
'parent'=>'confirm',
Expand Down

0 comments on commit d5e56aa

Please sign in to comment.