| @@ -24,19 +24,19 @@ | ||
| 24 | 24 | ) ); |
| 25 | 25 | |
| 26 | 26 | $is_unit = ( ! empty( $args['unit'] ) ) ? ' adminify--is-unit' : ''; |
| 27 | 27 | |
| 28 | - echo wp_kses_post( $this->field_before() ); | |
| 28 | + echo $this->field_before(); | |
| 29 | 29 | |
| 30 | 30 | echo '<div class="adminify--wrap">'; |
| 31 | 31 | echo '<div class="adminify-slider-ui"></div>'; |
| 32 | 32 | echo '<div class="adminify--input">'; |
| 33 | - echo '<input type="number" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. $this->field_attributes( array( 'class' => 'adminify-input-number'. esc_attr( $is_unit ) ) ) .' data-min="'. esc_attr( $args['min'] ) .'" data-max="'. esc_attr( $args['max'] ) .'" data-step="'. esc_attr( $args['step'] ) .'" step="any" />'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- field_attributes() escapes each attribute via esc_attr() | |
| 33 | + echo '<input type="number" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. $this->field_attributes( array( 'class' => 'adminify-input-number'. esc_attr( $is_unit ) ) ) .' data-min="'. esc_attr( $args['min'] ) .'" data-max="'. esc_attr( $args['max'] ) .'" data-step="'. esc_attr( $args['step'] ) .'" step="any" />'; | |
| 34 | 34 | echo ( ! empty( $args['unit'] ) ) ? '<span class="adminify--unit">'. esc_attr( $args['unit'] ) .'</span>' : ''; |
| 35 | 35 | echo '</div>'; |
| 36 | 36 | echo '</div>'; |
| 37 | 37 | |
| 38 | - echo wp_kses_post( $this->field_after() ); | |
| 38 | + echo $this->field_after(); | |
| 39 | 39 | |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function enqueue() { |