← All changes
|
Libs/adminify-framework/fields/image_select/image_select.php
+3
-3
4.3.0
→
4.0.2.2
View file →
| @@ -25,9 +25,9 @@ | ||
| 25 | 25 | $inline = ( $args['inline'] ) ? ' adminify--inline-list' : ''; |
| 26 | 26 | |
| 27 | 27 | $value = ( is_array( $this->value ) ) ? $this->value : array_filter( (array) $this->value ); |
| 28 | 28 | |
| 29 | - echo wp_kses_post( $this->field_before() ); | |
| 29 | + echo $this->field_before(); | |
| 30 | 30 | |
| 31 | 31 | if ( ! empty( $args['options'] ) ) { |
| 32 | 32 | |
| 33 | 33 | echo '<div class="adminify-siblings adminify--image-group'. esc_attr( $inline ) .'" data-multiple="'. esc_attr( $args['multiple'] ) .'">'; |
| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | |
| 44 | 44 | echo '<div class="adminify--sibling adminify--image'. esc_attr( $active ) .'">'; |
| 45 | 45 | echo '<figure>'; |
| 46 | 46 | echo '<img src="'. esc_url( $option ) .'" alt="img-'. esc_attr( $num++ ) .'" />'; |
| 47 | - 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 '<input type="'. esc_attr( $type ) .'" name="'. esc_attr( $this->field_name( $extra ) ) .'" value="'. esc_attr( $key ) .'"'. $this->field_attributes() . esc_attr( $checked ) .'/>'; | |
| 48 | 48 | echo '</figure>'; |
| 49 | 49 | echo '</div>'; |
| 50 | 50 | |
| 51 | 51 | } |
| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | echo '</div>'; |
| 54 | 54 | |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - echo wp_kses_post( $this->field_after() ); | |
| 57 | + echo $this->field_after(); | |
| 58 | 58 | |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | public function output() { |