Completed
Pull Request — master (#2241)
by
unknown
33s
created
classes/controllers/FrmFormsController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1896,7 +1896,8 @@  discard block
 block discarded – undo
1896 1896
 		$vars   = array();
1897 1897
 		FrmAppHelper::include_svg();
1898 1898
 		self::include_device_too_small_message();
1899
-		if ( isset( $_POST['frm_compact_fields'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
1899
+		if ( isset( $_POST['frm_compact_fields'] ) ) {
1900
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
1900 1901
 			FrmAppHelper::permission_check( 'frm_edit_forms' );
1901 1902
 
1902 1903
 			// Javascript needs to be allowed in some field settings.
@@ -2321,7 +2322,8 @@  discard block
 block discarded – undo
2321 2322
 	private static function get_saved_errors( $form, $params ) {
2322 2323
 		global $frm_vars;
2323 2324
 
2324
-		if ( $params['posted_form_id'] == $form->id && $_POST && isset( $frm_vars['created_entries'][ $form->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
2325
+		if ( $params['posted_form_id'] == $form->id && $_POST && isset( $frm_vars['created_entries'][ $form->id ] ) ) {
2326
+// phpcs:ignore WordPress.Security.NonceVerification.Missing
2325 2327
 			$errors = $frm_vars['created_entries'][ $form->id ]['errors'];
2326 2328
 		} else {
2327 2329
 			$errors = array();
Please login to merge, or discard this patch.