Completed
Pull Request — master (#2443)
by
unknown
41s
created
classes/controllers/FrmTestModeController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,8 @@  discard block
 block discarded – undo
137 137
 	 * @return array
138 138
 	 */
139 139
 	private static function get_enabled_form_action_ids( $form_actions, $enabled ) {
140
-		if ( ! $enabled || empty( $_POST ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
140
+		if ( ! $enabled || empty( $_POST ) ) {
141
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
141 142
 			// Default to having all actions selected.
142 143
 			return wp_list_pluck( $form_actions, 'ID' );
143 144
 		}
@@ -147,7 +148,8 @@  discard block
 block discarded – undo
147 148
 			return wp_list_pluck( $form_actions, 'ID' );
148 149
 		}
149 150
 
150
-		if ( empty( $_POST['frm_testmode']['enabled_form_actions'] ) || ! is_array( $_POST['frm_testmode']['enabled_form_actions'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
151
+		if ( empty( $_POST['frm_testmode']['enabled_form_actions'] ) || ! is_array( $_POST['frm_testmode']['enabled_form_actions'] ) ) {
152
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
151 153
 			return array();
152 154
 		}
153 155
 
Please login to merge, or discard this patch.