|
@@ -302,7 +302,8 @@ discard block |
|
|
block discarded – undo |
|
302
|
302
|
FrmForm::update( $id, $values ); |
|
303
|
303
|
$message = __( 'Form was successfully updated.', 'formidable' ); |
|
304
|
304
|
|
|
305
|
|
- if ( true ) {//self::is_too_long( $values ) ) { |
|
|
305
|
+ if ( true ) { |
|
|
306
|
+//self::is_too_long( $values ) ) { |
|
306
|
307
|
$message .= '<br/> ' . sprintf( |
|
307
|
308
|
/* translators: %1$s: Start link HTML, %2$s: end link HTML */ |
|
308
|
309
|
__( 'However, your form is very long and may be %1$sreaching server limits%2$s.', 'formidable' ), |
|
@@ -1965,7 +1966,8 @@ discard block |
|
|
block discarded – undo |
|
1965
|
1966
|
$action = isset( $_REQUEST['frm_action'] ) ? 'frm_action' : 'action'; |
|
1966
|
1967
|
$vars = array(); |
|
1967
|
1968
|
FrmAppHelper::include_svg(); |
|
1968
|
|
- if ( isset( $_POST['frm_compact_fields'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
|
1969
|
+ if ( isset( $_POST['frm_compact_fields'] ) ) { |
|
|
1970
|
+// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
1969
|
1971
|
FrmAppHelper::permission_check( 'frm_edit_forms' ); |
|
1970
|
1972
|
|
|
1971
|
1973
|
// Javascript needs to be allowed in some field settings. |
|
@@ -2410,7 +2412,8 @@ discard block |
|
|
block discarded – undo |
|
2410
|
2412
|
private static function get_saved_errors( $form, $params ) { |
|
2411
|
2413
|
global $frm_vars; |
|
2412
|
2414
|
|
|
2413
|
|
- if ( $params['posted_form_id'] == $form->id && $_POST && isset( $frm_vars['created_entries'][ $form->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
|
2415
|
+ if ( $params['posted_form_id'] == $form->id && $_POST && isset( $frm_vars['created_entries'][ $form->id ] ) ) { |
|
|
2416
|
+// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
2414
|
2417
|
$errors = $frm_vars['created_entries'][ $form->id ]['errors']; |
|
2415
|
2418
|
} else { |
|
2416
|
2419
|
$errors = array(); |