| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. |
| 2 | 2 | |
| 3 | -use PXLBSAdminify\Inc\Utils; | |
| 3 | +use WPAdminify\Inc\Utils; | |
| 4 | 4 | /** |
| 5 | 5 | * |
| 6 | 6 | * Field: group |
| 7 | 7 | * |
| @@ -45,9 +45,9 @@ | ||
| 45 | 45 | echo '<div class="adminify-notice adminify-notice-danger">'. esc_html__( 'Error: Field ID conflict.', 'adminify' ) .'</div>'; |
| 46 | 46 | |
| 47 | 47 | } else { |
| 48 | 48 | |
| 49 | - echo wp_kses_post( $this->field_before() ); | |
| 49 | + echo $this->field_before(); | |
| 50 | 50 | |
| 51 | 51 | echo '<div class="adminify-cloneable-item adminify-cloneable-hidden" data-depend-id="'. esc_attr( $this->field['id'] ) .'">'; |
| 52 | 52 | |
| 53 | 53 | echo '<div class="adminify-cloneable-helper">'; |
| @@ -76,9 +76,9 @@ | ||
| 76 | 76 | echo '</div>'; |
| 77 | 77 | |
| 78 | 78 | echo '</div>'; |
| 79 | 79 | |
| 80 | - echo '<div class="adminify-cloneable-wrapper adminify-data-wrapper" data-title-by="'. esc_attr( wp_json_encode( $title_by ) ) .'" data-title-by-prefix="'. esc_attr( $title_by_prefix ) .'" data-title-number="'. esc_attr( $title_number ) .'" data-field-id="['. esc_attr( $this->field['id'] ) .']" data-max="'. esc_attr( $args['max'] ) .'" data-min="'. esc_attr( $args['min'] ) .'">'; | |
| 80 | + echo '<div class="adminify-cloneable-wrapper adminify-data-wrapper" data-title-by="'. esc_attr( json_encode( $title_by ) ) .'" data-title-by-prefix="'. esc_attr( $title_by_prefix ) .'" data-title-number="'. esc_attr( $title_number ) .'" data-field-id="['. esc_attr( $this->field['id'] ) .']" data-max="'. esc_attr( $args['max'] ) .'" data-min="'. esc_attr( $args['min'] ) .'">'; | |
| 81 | 81 | |
| 82 | 82 | if ( ! empty( $this->value ) ) { |
| 83 | 83 | |
| 84 | 84 | $num = 0; |
| @@ -141,13 +141,13 @@ | ||
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | echo '</div>'; |
| 144 | 144 | |
| 145 | - echo '<div class="adminify-cloneable-alert adminify-cloneable-max">'. Utils::kses_custom($args['max_text'] ) .'</div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- kses_custom() is a wp_kses() wrapper; output already escaped. | |
| 145 | + echo '<div class="adminify-cloneable-alert adminify-cloneable-max">'. Utils::wp_kses_custom($args['max_text'] ) .'</div>'; | |
| 146 | 146 | echo '<div class="adminify-cloneable-alert adminify-cloneable-min">'. esc_html__( 'You cannot remove more.', 'adminify' ) .'</div>'; |
| 147 | - echo '<a href="#" class="button button-primary adminify-cloneable-add">'. esc_html( $args['button_title'] ) .'</a>'; | |
| 147 | + echo '<a href="#" class="button button-primary adminify-cloneable-add">'. $args['button_title'] .'</a>'; | |
| 148 | 148 | |
| 149 | - echo wp_kses_post( $this->field_after() ); | |
| 149 | + echo $this->field_after(); | |
| 150 | 150 | |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | } |