Skip to content

Commit

Permalink
fixes the typings for the honeyform / excluded page
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Jan 26, 2024
1 parent 3659196 commit 6deb49c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions admin/CF7_AntiSpam_Admin_Customizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,12 +1009,10 @@ private function cf7a_input_cron_schedule( $input, $input_name, $cron_task, $sch


private function cf7a_clean_agnostic( $value ) {
if ( is_numeric( $value ) ) {
if ( is_bool( $value ) ) {
$input = boolval( $value );
} elseif ( is_float( $value ) ) {
} elseif ( is_numeric( $value ) ) {
$input = floatval( $value );
} elseif ( is_int( $value ) ) {
$input = intval( $value );
} else {
$input = sanitize_text_field( $value );
}
Expand Down Expand Up @@ -1068,6 +1066,7 @@ public function cf7a_sanitize_options( $input ) {
$input['cf7a_enable'] = 1;
$input['cf7a_version'] = CF7ANTISPAM_VERSION;
}
error_log( print_r( $input, true ) );

$new_input['cf7a_enabled'] = isset( $input['cf7a_enabled'] ) ? 1 : 0;

Expand Down

0 comments on commit 6deb49c

Please sign in to comment.