| @@ -1054,9 +1054,9 @@ | ||
| 1054 | 1054 | <?php if (!empty($settings['before_text'])) : ?> |
| 1055 | 1055 | <div class="upk-newsletter-before-text"><?php echo esc_html($settings['before_text']); ?></div> |
| 1056 | 1056 | <?php endif; ?> |
| 1057 | 1057 | |
| 1058 | - <form action="<?php echo esc_url(site_url()) ?>/wp-admin/admin-ajax.php" class="upk-newsletter"> | |
| 1058 | + <form action="<?php echo esc_url(admin_url('admin-ajax.php')); ?>" class="upk-newsletter"> | |
| 1059 | 1059 | |
| 1060 | 1060 | <?php if ($settings['show_before_icon'] and !empty($settings['mailchimp_before_icon']['value'])) : ?> |
| 1061 | 1061 | <div class="upk-newsletter-before-icon"> |
| 1062 | 1062 | |
| @@ -1066,14 +1066,14 @@ | ||
| 1066 | 1066 | <?php endif; ?> |
| 1067 | 1067 | |
| 1068 | 1068 | <?php if ($settings['show_fname'] == 'yes') : ?> |
| 1069 | 1069 | <div <?php $this->print_render_attribute_string('input-wrapper'); ?>> |
| 1070 | - <input type="text" name="fname" placeholder="<?php echo esc_html($settings['fname_field_placeholder']); ?>" class="upk-input" /> | |
| 1070 | + <input type="text" name="fname" placeholder="<?php echo esc_attr($settings['fname_field_placeholder']); ?>" class="upk-input" /> | |
| 1071 | 1071 | </div> |
| 1072 | 1072 | <?php endif; ?> |
| 1073 | 1073 | |
| 1074 | 1074 | <div <?php $this->print_render_attribute_string('input-wrapper'); ?>> |
| 1075 | - <input type="email" name="email" placeholder="<?php echo esc_html($settings['email_field_placeholder']); ?>" required class="upk-input" /> | |
| 1075 | + <input type="email" name="email" placeholder="<?php echo esc_attr($settings['email_field_placeholder']); ?>" required class="upk-input" /> | |
| 1076 | 1076 | <input type="hidden" name="action" value="ultimate_post_kit_mailchimp_subscribe" /> |
| 1077 | 1077 | <!-- we need action parameter to receive ajax request in WordPress --> |
| 1078 | 1078 | </div> |
| 1079 | 1079 | <?php |