| @@ -48,9 +48,28 @@ | ||
| 48 | 48 | |
| 49 | 49 | <div class="wdk-field-<?php echo esc_attr($field_id);?> wdk-field-edit <?php echo esc_attr($field->field_type); ?> wdk-col-<?php echo esc_attr($field->columns_number); ?> <?php echo esc_attr($field->class); ?>"> |
| 50 | 50 | <label for="<?php echo esc_attr($field_id); ?>"><?php echo esc_html($field_label).esc_html($required); ?></label> |
| 51 | 51 | <div class="wdk-field-container"> |
| 52 | - <?php echo wdk_treefield_option($field_id, 'user_m', wmvc_show_data($field_id, $db_data, ''), 'display_name', '', __('Not Selected', 'wpdirectorykit'));?> | |
| 52 | + <?php | |
| 53 | + echo wp_kses( | |
| 54 | + wdk_treefield_option($field_id, 'user_m', wmvc_show_data($field_id, $db_data, ''), 'display_name', '', __('Not Selected', 'wpdirectorykit')), | |
| 55 | + array( | |
| 56 | + 'select' => array( | |
| 57 | + 'class' => true, | |
| 58 | + 'id' => true, | |
| 59 | + 'name' => true, | |
| 60 | + 'multiple' => true, | |
| 61 | + 'style' => true, | |
| 62 | + ), | |
| 63 | + 'option' => array( | |
| 64 | + 'value' => true, | |
| 65 | + 'selected' => true, | |
| 66 | + ), | |
| 67 | + // Add more allowed tags/attributes if wdk_treefield_option outputs others | |
| 68 | + ) | |
| 69 | + ); | |
| 70 | + ?> | |
| 71 | + | |
| 53 | 72 | |
| 54 | 73 | <?php |
| 55 | 74 | // echo wmvc_select_option($field_id, $users, wmvc_show_data($field_id, $db_data, ''), NULL, __('Not Selected', 'wpdirectorykit')); |
| 56 | 75 | ?> |