src/components/points/admin/includes/ajax.php 1 location
|
@@ 126-128 (lines=3) @@
|
123 |
|
|
124 |
|
$settings = array(); |
125 |
|
|
126 |
|
if ( isset( $_POST['points-name'] ) ) { |
127 |
|
$settings['name'] = trim( sanitize_text_field( wp_unslash( $_POST['points-name'] ) ) ); |
128 |
|
} |
129 |
|
|
130 |
|
if ( isset( $_POST['points-prefix'] ) ) { |
131 |
|
$settings['prefix'] = ltrim( sanitize_text_field( wp_unslash( $_POST['points-prefix'] ) ) ); |
src/components/points/admin/classes/screen/points/types.php 1 location
|
@@ 684-688 (lines=5) @@
|
681 |
|
|
682 |
|
$settings = array(); |
683 |
|
|
684 |
|
if ( isset( $_POST['points-name'] ) ) { // WPCS: CSRF OK |
685 |
|
$settings['name'] = trim( |
686 |
|
sanitize_text_field( wp_unslash( $_POST['points-name'] ) ) // WPCS: CSRF OK |
687 |
|
); |
688 |
|
} |
689 |
|
|
690 |
|
if ( isset( $_POST['points-prefix'] ) ) { // WPCS: CSRF OK |
691 |
|
$settings['prefix'] = ltrim( |