src/components/points/admin/includes/ajax.php 1 location
|
@@ 134-136 (lines=3) @@
|
131 |
|
$settings['prefix'] = ltrim( sanitize_text_field( wp_unslash( $_POST['points-prefix'] ) ) ); |
132 |
|
} |
133 |
|
|
134 |
|
if ( isset( $_POST['points-suffix'] ) ) { |
135 |
|
$settings['suffix'] = rtrim( sanitize_text_field( wp_unslash( $_POST['points-suffix'] ) ) ); |
136 |
|
} |
137 |
|
|
138 |
|
$points_type = sanitize_key( $_POST['points-slug'] ); |
139 |
|
|
src/components/points/admin/classes/screen/points/types.php 1 location
|
@@ 696-700 (lines=5) @@
|
693 |
|
); |
694 |
|
} |
695 |
|
|
696 |
|
if ( isset( $_POST['points-suffix'] ) ) { // WPCS: CSRF OK |
697 |
|
$settings['suffix'] = rtrim( |
698 |
|
sanitize_text_field( wp_unslash( $_POST['points-suffix'] ) ) // WPCS: CSRF OK |
699 |
|
); |
700 |
|
} |
701 |
|
|
702 |
|
return $settings; |
703 |
|
} |