Skip to content

Commit

Permalink
Remove usage of deprecated \FILTER_SANITIZE_STRING in gateway setti…
Browse files Browse the repository at this point in the history
…ngs fields.
  • Loading branch information
rvdsteege committed Dec 9, 2022
1 parent aabd33d commit 58397af
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public static function get_settings_fields( $type ) {
// PSPID.
$fields[] = [
'section' => 'general',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_psp_id',
'title' => __( 'PSPID', 'pronamic_ideal' ),
'type' => 'text',
Expand All @@ -46,7 +45,6 @@ public static function get_settings_fields( $type ) {
// API user ID.
$fields[] = [
'section' => 'general',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_user_id',
'title' => __( 'API user ID', 'pronamic_ideal' ),
'type' => 'text',
Expand All @@ -57,7 +55,6 @@ public static function get_settings_fields( $type ) {
// API user password.
$fields[] = [
'section' => 'general',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_password',
'title' => __( 'API user password', 'pronamic_ideal' ),
'type' => 'password',
Expand All @@ -69,7 +66,6 @@ public static function get_settings_fields( $type ) {
// SHA-IN Pass phrase.
$fields[] = [
'section' => 'general',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_sha_in_pass_phrase',
'title' => __( 'SHA-IN Pass phrase', 'pronamic_ideal' ),
'type' => 'password',
Expand All @@ -82,7 +78,6 @@ public static function get_settings_fields( $type ) {
// SHA-IN Pass phrase.
$fields[] = [
'section' => 'general',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_directlink_sha_in_pass_phrase',
'title' => __( 'SHA-IN Pass phrase', 'pronamic_ideal' ),
'type' => 'password',
Expand All @@ -94,7 +89,6 @@ public static function get_settings_fields( $type ) {
// SHA-OUT Pass phrase.
$fields[] = [
'section' => 'general',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_sha_out_pass_phrase',
'title' => __( 'SHA-OUT Pass phrase', 'pronamic_ideal' ),
'type' => 'password',
Expand All @@ -105,7 +99,6 @@ public static function get_settings_fields( $type ) {
// Hash algorithm.
$fields[] = [
'section' => 'general',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_hash_algorithm',
'title' => __( 'Hash algorithm', 'pronamic_ideal' ),
'type' => 'optgroup',
Expand Down Expand Up @@ -144,7 +137,6 @@ public static function get_settings_fields( $type ) {
if ( 'standard' === $type ) {
$fields[] = [
'section' => 'advanced',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_form_action_url',
'title' => __( 'Form Action URL', 'pronamic_ideal' ),
'type' => 'text',
Expand All @@ -156,7 +148,6 @@ public static function get_settings_fields( $type ) {
// Order ID.
$fields[] = [
'section' => 'advanced',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_order_id',
'title' => __( 'Order ID', 'pronamic_ideal' ),
'type' => 'text',
Expand Down Expand Up @@ -184,7 +175,6 @@ public static function get_settings_fields( $type ) {
// Parameter Variable.
$fields[] = [
'section' => 'advanced',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_param_var',
'title' => __( 'Parameter Variable', 'pronamic_ideal' ),
'type' => 'text',
Expand Down Expand Up @@ -215,7 +205,6 @@ public static function get_settings_fields( $type ) {
// Alias usage.
$fields[] = [
'section' => 'advanced',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_alias_usage',
'title' => __( 'Alias Usage', 'pronamic_ideal' ),
'type' => 'text',
Expand All @@ -231,7 +220,6 @@ public static function get_settings_fields( $type ) {
// Template Page.
$fields[] = [
'section' => 'advanced',
'filter' => FILTER_SANITIZE_STRING,
'meta_key' => '_pronamic_gateway_ogone_template_page',
'title' => __( 'Template Page', 'pronamic_ideal' ),
'type' => 'text',
Expand Down

0 comments on commit 58397af

Please sign in to comment.