From b58b941145bfc06156bac31917350ff1af6fce21 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:42:35 +0200 Subject: [PATCH] The `FILTER_UNSAFE_RAW` is not required, the default `sanitize_text_field` will work fine. --- src/Integration.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Integration.php b/src/Integration.php index d2ba98c..9c37b57 100644 --- a/src/Integration.php +++ b/src/Integration.php @@ -69,7 +69,6 @@ public function get_settings_fields() { // Storename. $fields[] = [ 'section' => 'general', - 'filter' => FILTER_UNSAFE_RAW, 'meta_key' => '_pronamic_gateway_ems_ecommerce_storename', 'title' => _x( 'Storename', 'ems', 'pronamic_ideal' ), 'type' => 'text', @@ -80,7 +79,6 @@ public function get_settings_fields() { // Shared secret. $fields[] = [ 'section' => 'general', - 'filter' => FILTER_UNSAFE_RAW, 'meta_key' => '_pronamic_gateway_ems_ecommerce_secret', 'title' => _x( 'Shared Secret', 'ems', 'pronamic_ideal' ), 'type' => 'text', @@ -91,10 +89,6 @@ public function get_settings_fields() { // Purchase ID. $fields[] = [ 'section' => 'advanced', - /** - * Filter EMS order ID unsafe raw to allow double quotes. - */ - 'filter' => \FILTER_UNSAFE_RAW, 'meta_key' => '_pronamic_gateway_ems_ecommerce_order_id', 'title' => __( 'Order ID', 'pronamic_ideal' ), 'type' => 'text',