Skip to content

Commit

Permalink
Merge pull request #2605 from iamntz/patch-3
Browse files Browse the repository at this point in the history
Apply wpautop to front-end display of HTML fields. #2619
  • Loading branch information
Shelob9 committed Jun 13, 2018
2 parents cf2a41a + 360924b commit ce60e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/html/field.php
Expand Up @@ -21,7 +21,7 @@

}else{
$html_template = $field[ 'config' ][ 'default' ];
$content = do_shortcode( Caldera_Forms::do_magic_tags( $html_template ) );
$content = do_shortcode( Caldera_Forms::do_magic_tags( wpautop( $html_template ) ) );
echo '<div class="' . esc_attr( $field['config']['custom_class'] ) . '">' . $content . '</div>';
}

Expand Down

0 comments on commit ce60e82

Please sign in to comment.