@@ -42,8 +42,10 @@ |
||
42 | 42 | <?php |
43 | 43 | $form_actions = FrmFormAction::get_action_for_form( $form_id ); |
44 | 44 | $enabled_form_actions = wp_list_pluck( $form_actions, 'ID' ); |
45 | - if ( $enabled && ! empty( $_POST ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
46 | - if ( ! empty( $_POST['frm_testmode']['enabled_form_actions'] ) && is_array( $_POST['frm_testmode']['enabled_form_actions'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
45 | + if ( $enabled && ! empty( $_POST ) ) { |
|
46 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
47 | + if ( ! empty( $_POST['frm_testmode']['enabled_form_actions'] ) && is_array( $_POST['frm_testmode']['enabled_form_actions'] ) ) { |
|
48 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
47 | 49 | $enabled_form_actions = array_map( 'absint', $_POST['frm_testmode']['enabled_form_actions'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing |
48 | 50 | } else { |
49 | 51 | $enabled_form_actions = array(); |