PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/fields/class-field-html.php +1 -10 1.6.241.6.1 View file →
@@ -19,20 +19,11 @@
19 19 *
20 20 * @return void
21 21 */
22 22 public function render( $field_settings, $form_id ) {
23 - /**
24 - * Ensure the field name is set. There have been cases where the name array key is not set.
25 - * Not sure why and we were unable to replicate without manually removing the key.
26 - * This is a failsafe to ensure the field name is set.
27 - */
28 - if ( ! isset( $field_settings['name'] ) ) {
29 - $field_settings['name'] = 'custom_html';
30 - }
31 - $use_theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style';
32 23 ?>
33 24 <li <?php $this->print_list_attributes( $field_settings ); ?>>
34 - <div class="wpuf-fields <?php echo 'html_' . esc_attr( $form_id ); ?><?php echo ' wpuf_'. esc_attr( $field_settings['name'] ).'_'. esc_attr( $form_id ); ?>" data-style="<?php echo esc_attr( $use_theme_css ); ?>">
25 + <div class="wpuf-fields <?php echo 'html_' . esc_attr( $form_id ); ?><?php echo ' wpuf_'. esc_attr( $field_settings['name'] ).'_'. esc_attr( $form_id ); ?>">
35 26 <?php echo $field_settings['html']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
36 27 </div>
37 28
38 29 </li>