parent
358f3f79fa
commit
a056e3e649
|
@ -2369,7 +2369,7 @@ class WC_AJAX {
|
|||
}
|
||||
|
||||
$key_id = absint( $_POST['key_id'] );
|
||||
$description = sanitize_text_field( $_POST['description'] );
|
||||
$description = sanitize_text_field( wp_unslash( $_POST['description'] ) );
|
||||
$permissions = ( in_array( $_POST['permissions'], array( 'read', 'write', 'read_write' ) ) ) ? sanitize_text_field( $_POST['permissions'] ) : 'read';
|
||||
$user_id = absint( $_POST['user'] );
|
||||
|
||||
|
|
Loading…
Reference in New Issue