@@ -13,7 +13,7 @@ |
||
13 | 13 | $number_of_pages_to_show = 4; |
14 | 14 | ?> |
15 | 15 | <div id="frm_test_mode_pagination"> |
16 | - <?php for ( $i = 1; $i <= $number_of_pages_to_show; $i++ ) : ?> |
|
16 | + <?php for ( $i = 1; $i <= $number_of_pages_to_show; $i ++ ) : ?> |
|
17 | 17 | <input type="button" class="frm_noallow <?php echo $i === 1 ? 'frm_test_mode_active_page' : ''; ?>" value="<?php echo esc_attr( $i ); ?>"/> |
18 | 18 | <?php endfor; ?> |
19 | 19 | </div> |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | private static function get_testing_mode_container() { |
67 | 67 | return FrmAppHelper::clip( |
68 | - function () { |
|
68 | + function() { |
|
69 | 69 | $enabled = function_exists( 'load_formidable_test_mode' ); |
70 | 70 | $ai_enabled = class_exists( 'FrmAIAppHelper' ); |
71 | 71 | $roles = self::get_roles(); |
@@ -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(); |