| @@ -22,14 +22,14 @@ | ||
| 22 | 22 | 'step' => 'any', |
| 23 | 23 | 'unit' => '', |
| 24 | 24 | ) ); |
| 25 | 25 | |
| 26 | - echo wp_kses_post( $this->field_before() ); | |
| 26 | + echo $this->field_before(); | |
| 27 | 27 | echo '<div class="adminify--wrap">'; |
| 28 | - echo '<input type="number" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. $this->field_attributes() .' min="'. esc_attr( $args['min'] ) .'" max="'. esc_attr( $args['max'] ) .'" step="'. esc_attr( $args['step'] ) .'"/>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- field_attributes() escapes each attribute via esc_attr() | |
| 28 | + echo '<input type="number" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. $this->field_attributes() .' min="'. esc_attr( $args['min'] ) .'" max="'. esc_attr( $args['max'] ) .'" step="'. esc_attr( $args['step'] ) .'"/>'; | |
| 29 | 29 | echo ( ! empty( $args['unit'] ) ) ? '<span class="adminify--unit">'. esc_attr( $args['unit'] ) .'</span>' : ''; |
| 30 | 30 | echo '</div>'; |
| 31 | - echo wp_kses_post( $this->field_after() ); | |
| 31 | + echo $this->field_after(); | |
| 32 | 32 | |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | public function output() { |