← All changes
|
includes/elementor/modules/optin/fields/acceptance.php
+3
-5
1.5.1
→
2.7.0
View file →
| @@ -20,18 +20,16 @@ | ||
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public function render_content() { |
| 24 | - $attrs = $this->widget->get_render_attribute_string( 'field-' . $this->get_id() ); | |
| 25 | - | |
| 26 | 24 | ?> |
| 27 | 25 | <div class="sellkit-field-subgroup"> |
| 28 | 26 | <span class="sellkit-field-option sellkit-field-option-checkbox"> |
| 29 | - <input <?php echo $attrs; ?>> | |
| 27 | + <input <?php echo $this->widget->get_render_attribute_string( 'field-' . esc_attr( $this->get_id() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>> | |
| 30 | 28 | <label |
| 31 | - for="optin-field-<?php echo $this->get_id(); ?>" | |
| 29 | + for="optin-field-<?php echo esc_attr( $this->get_id() ); ?>" | |
| 32 | 30 | class="sellkit-field-label"> |
| 33 | - <?php echo $this->field['acceptance_text']; ?> | |
| 31 | + <?php echo wp_kses_post( $this->field['acceptance_text'] ); ?> | |
| 34 | 32 | <?php if ( isset( $this->field['required'] ) && 'true' === $this->field['required'] ) : ?> |
| 35 | 33 | <span class="required-mark-label"></span> |
| 36 | 34 | <?php endif ?> |
| 37 | 35 | </label> |