← All changes
|
Libs/adminify-framework/fields/gallery/gallery.php
+6
-6
4.2.6
→
4.0.5.4
View file →
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | ) ); |
| 24 | 24 | |
| 25 | 25 | $hidden = ( empty( $this->value ) ) ? ' hidden' : ''; |
| 26 | 26 | |
| 27 | - echo wp_kses_post( $this->field_before() ); | |
| 27 | + echo $this->field_before(); | |
| 28 | 28 | |
| 29 | 29 | echo '<ul>'; |
| 30 | 30 | if ( ! empty( $this->value ) ) { |
| 31 | 31 | |
| @@ -38,14 +38,14 @@ | ||
| 38 | 38 | |
| 39 | 39 | } |
| 40 | 40 | echo '</ul>'; |
| 41 | 41 | |
| 42 | - echo '<a href="#" class="button button-primary adminify-button">'. esc_html( $args['add_title'] ) .'</a>'; | |
| 43 | - echo '<a href="#" class="button adminify-edit-gallery'. esc_attr( $hidden ) .'">'. esc_html( $args['edit_title'] ) .'</a>'; | |
| 44 | - echo '<a href="#" class="button adminify-warning-primary adminify-clear-gallery'. esc_attr( $hidden ) .'">'. esc_html( $args['clear_title'] ) .'</a>'; | |
| 45 | - echo '<input type="hidden" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. $this->field_attributes() .'/>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- field_attributes() escapes each attribute via esc_attr() | |
| 42 | + echo '<a href="#" class="button button-primary adminify-button">'. $args['add_title'] .'</a>'; | |
| 43 | + echo '<a href="#" class="button adminify-edit-gallery'. esc_attr( $hidden ) .'">'. $args['edit_title'] .'</a>'; | |
| 44 | + echo '<a href="#" class="button adminify-warning-primary adminify-clear-gallery'. esc_attr( $hidden ) .'">'. $args['clear_title'] .'</a>'; | |
| 45 | + echo '<input type="hidden" name="'. esc_attr( $this->field_name() ) .'" value="'. esc_attr( $this->value ) .'"'. $this->field_attributes() .'/>'; | |
| 46 | 46 | |
| 47 | - echo wp_kses_post( $this->field_after() ); | |
| 47 | + echo $this->field_after(); | |
| 48 | 48 | |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | } |