← All changes
|
includes/elementor/modules/optin/fields/field-base.php
+3
-3
1.6.8
→
2.7.0
View file →
| @@ -204,9 +204,9 @@ | ||
| 204 | 204 | $this->add_field_render_attribute(); |
| 205 | 205 | $this->add_field_group_render_attribute(); |
| 206 | 206 | |
| 207 | 207 | ?> |
| 208 | - <div <?php echo $this->widget->get_render_attribute_string( 'field-group-' . $this->get_id() ); ?>> | |
| 208 | + <div <?php echo $this->widget->get_render_attribute_string( 'field-group-' . esc_attr( $this->get_id() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>> | |
| 209 | 209 | <?php |
| 210 | 210 | $this->render_label(); |
| 211 | 211 | $this->render_content(); |
| 212 | 212 | ?> |
| @@ -300,11 +300,11 @@ | ||
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | ?> |
| 303 | 303 | <label |
| 304 | - for="optin-field-<?php echo $this->get_id(); ?>" | |
| 304 | + for="optin-field-<?php echo esc_attr( $this->get_id() ); ?>" | |
| 305 | 305 | class="sellkit-field-label"> |
| 306 | - <?php echo $this->field['label']; ?> | |
| 306 | + <?php echo wp_kses_post( $this->field['label'] ); ?> | |
| 307 | 307 | <?php if ( isset( $this->field['required'] ) && 'true' === $this->field['required'] ) : ?> |
| 308 | 308 | <span class="required-mark-label"></span> |
| 309 | 309 | <?php endif ?> |
| 310 | 310 | </label> |