← All changes
|
includes/elementor/modules/optin/fields/address.php
+13
-2
1.6.8
→
2.7.0
View file →
| @@ -12,12 +12,23 @@ | ||
| 12 | 12 | return 'text'; |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | public function render_content() { |
| 16 | - $attrs = $this->widget->get_render_attribute_string( 'field-' . $this->get_id() ); | |
| 16 | + ?> | |
| 17 | + <input <?php echo $this->widget->get_render_attribute_string( 'field-' . esc_attr( $this->get_id() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>> | |
| 18 | + <?php | |
| 17 | 19 | |
| 20 | + $attributes = [ | |
| 21 | + 'type' => 'hidden', | |
| 22 | + 'name' => 'fields[hidden_' . $this->get_id() . ']', | |
| 23 | + 'id' => 'optin-field-hidden-' . $this->get_id(), | |
| 24 | + 'class' => $this->get_class(), | |
| 25 | + 'data-type' => 'hidden', | |
| 26 | + ]; | |
| 27 | + | |
| 28 | + $this->widget->add_render_attribute( 'field-hidden-' . $this->get_id(), $attributes ); | |
| 18 | 29 | ?> |
| 19 | - <input <?php echo $attrs; ?>> | |
| 30 | + <input <?php echo $this->widget->get_render_attribute_string( 'field-hidden-' . $this->get_id() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>> | |
| 20 | 31 | <?php |
| 21 | 32 | } |
| 22 | 33 | |
| 23 | 34 | public static function get_additional_controls() { |