| @@ -38,15 +38,15 @@ | ||
| 38 | 38 | $required = '*'; |
| 39 | 39 | |
| 40 | 40 | ?> |
| 41 | 41 | |
| 42 | -<div class="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); ?>"> | |
| 42 | +<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); ?>"> | |
| 43 | 43 | <label for="<?php echo esc_attr($field_id); ?>"><?php echo esc_html($field_label).esc_html($required); ?></label> |
| 44 | 44 | <div class="wdk-field-container"> |
| 45 | 45 | <input class="regular-text" name="<?php echo esc_attr($field_id); ?>" type="text" id="<?php echo esc_attr($field_id); ?>" value="<?php echo esc_attr(wmvc_show_data($field_id, $db_data, '')); ?>"> |
| 46 | 46 | <span class="suffix"> |
| 47 | 47 | <?php if(!empty(wmvc_show_data($field_id, $db_data, ''))):?> |
| 48 | - <a class="button button-primary" target="_blank" href="<?php echo admin_url('post.php?action=edit&post='.wmvc_show_data($field_id, $db_data, ''));?>" style="margin-top: -5px;"> | |
| 48 | + <a class="button button-primary" target="_blank" href="<?php echo esc_url(admin_url('post.php?action=edit&post='.wmvc_show_data($field_id, $db_data, '')));?>" style="margin-top: -5px;"> | |
| 49 | 49 | <?php echo esc_html__('Edit Product','wpdirectorykit');?> |
| 50 | 50 | </a> |
| 51 | 51 | <?php endif;?></span> |
| 52 | 52 | <?php if(!empty($field->hint)):?> |