← All changes
|
Libs/adminify-framework/fields/button_set/button_set.php
+4
-4
4.2.26
→
4.0
View file →
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | ) ); |
| 24 | 24 | |
| 25 | 25 | $value = ( is_array( $this->value ) ) ? $this->value : array_filter( (array) $this->value ); |
| 26 | 26 | |
| 27 | - echo wp_kses_post( $this->field_before() ); | |
| 27 | + echo $this->field_before(); | |
| 28 | 28 | |
| 29 | 29 | if ( isset( $this->field['options'] ) ) { |
| 30 | 30 | |
| 31 | 31 | $options = $this->field['options']; |
| @@ -42,10 +42,10 @@ | ||
| 42 | 42 | $active = ( in_array( $key, $value ) || ( empty( $value ) && empty( $key ) ) ) ? ' adminify--active' : ''; |
| 43 | 43 | $checked = ( in_array( $key, $value ) || ( empty( $value ) && empty( $key ) ) ) ? ' checked' : ''; |
| 44 | 44 | |
| 45 | 45 | echo '<div class="adminify--sibling adminify--button'. esc_attr( $active ) .'">'; |
| 46 | - echo '<input type="'. esc_attr( $type ) .'" name="'. esc_attr( $this->field_name( $extra ) ) .'" value="'. esc_attr( $key ) .'"'. $this->field_attributes() . esc_attr( $checked ) .'/>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- field_attributes() escapes each attribute via esc_attr() | |
| 47 | - echo wp_kses_post( $option ); | |
| 46 | + echo '<input type="'. esc_attr( $type ) .'" name="'. esc_attr( $this->field_name( $extra ) ) .'" value="'. esc_attr( $key ) .'"'. $this->field_attributes() . esc_attr( $checked ) .'/>'; | |
| 47 | + echo $option; | |
| 48 | 48 | echo '</div>'; |
| 49 | 49 | |
| 50 | 50 | } |
| 51 | 51 | |
| @@ -58,9 +58,9 @@ | ||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - echo wp_kses_post( $this->field_after() ); | |
| 62 | + echo $this->field_after(); | |
| 63 | 63 | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | } |