Skip to content

Commit

Permalink
Update Integration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 11, 2023
1 parent 632734f commit 8933a88
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,21 +161,13 @@ public function get_settings_fields() {
// Number Days Valid.
$fields[] = [
'section' => 'general',
'filter' => \FILTER_SANITIZE_NUMBER_INT,
'group' => 'pk-cert',
'meta_key' => '_pronamic_gateway_number_days_valid',
'title' => __( 'Number Days Valid', 'pronamic_ideal' ),
'type' => 'text',
'default' => 1825,
'tooltip' => __( 'Number of days the generated certificate will be valid for, e.g. 1825 days for the maximum duration of 5 years.', 'pronamic_ideal' ),
'input' => function ( $name ) {
// phpcs:disable WordPress.Security.NonceVerification.Missing
if ( ! \array_key_exists( $name, $_POST ) ) {
return '';
}

// phpcs:ignore WordPress.Security.NonceVerification.Missing
return \filter_var( \sanitize_text_field( \wp_unslash( $_POST[ $name ] ) ), \FILTER_SANITIZE_NUMBER_INT );
},
];

// Secret Key Password.
Expand Down

0 comments on commit 8933a88

Please sign in to comment.