@@ -1616,7 +1616,8 @@ discard block |
||
1616 | 1616 | $vars = array(); |
1617 | 1617 | FrmAppHelper::include_svg(); |
1618 | 1618 | |
1619 | - if ( isset( $_POST['frm_compact_fields'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
1619 | + if ( isset( $_POST['frm_compact_fields'] ) ) { |
|
1620 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
1620 | 1621 | FrmAppHelper::permission_check( 'frm_edit_forms' ); |
1621 | 1622 | |
1622 | 1623 | // Javascript needs to be allowed in some field settings. |
@@ -2046,7 +2047,8 @@ discard block |
||
2046 | 2047 | private static function get_saved_errors( $form, $params ) { |
2047 | 2048 | global $frm_vars; |
2048 | 2049 | |
2049 | - if ( $params['posted_form_id'] == $form->id && $_POST && isset( $frm_vars['created_entries'][ $form->id ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
2050 | + if ( $params['posted_form_id'] == $form->id && $_POST && isset( $frm_vars['created_entries'][ $form->id ] ) ) { |
|
2051 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
2050 | 2052 | $errors = $frm_vars['created_entries'][ $form->id ]['errors']; |
2051 | 2053 | } else { |
2052 | 2054 | $errors = array(); |
@@ -185,7 +185,8 @@ discard block |
||
185 | 185 | * @param mixed $value |
186 | 186 | */ |
187 | 187 | private static function get_posted_field_setting( $setting, &$value ) { |
188 | - if ( ! isset( $_POST['field_options'][ $setting ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
188 | + if ( ! isset( $_POST['field_options'][ $setting ] ) ) { |
|
189 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
189 | 190 | return; |
190 | 191 | } |
191 | 192 | |
@@ -1144,7 +1145,8 @@ discard block |
||
1144 | 1145 | |
1145 | 1146 | // Check posted vals before checking saved values |
1146 | 1147 | // For fields inside repeating sections - note, don't check if $pointer is true because it will often be zero |
1147 | - if ( $parent && isset( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
1148 | + if ( $parent && isset( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ] ) ) { |
|
1149 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
1148 | 1150 | if ( FrmField::is_field_with_multiple_values( $field ) ) { |
1149 | 1151 | // phpcs:ignore WordPress.Security.NonceVerification.Missing |
1150 | 1152 | $other_val = isset( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ][ $opt_key ] ) ? sanitize_text_field( wp_unslash( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ][ $opt_key ] ) ) : ''; |
@@ -1154,7 +1156,8 @@ discard block |
||
1154 | 1156 | |
1155 | 1157 | return $other_val; |
1156 | 1158 | |
1157 | - } elseif ( isset( $field['id'] ) && isset( $_POST['item_meta']['other'][ $field['id'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
1159 | + } elseif ( isset( $field['id'] ) && isset( $_POST['item_meta']['other'][ $field['id'] ] ) ) { |
|
1160 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
1158 | 1161 | // For normal fields |
1159 | 1162 | |
1160 | 1163 | if ( FrmField::is_field_with_multiple_values( $field ) ) { |
@@ -145,7 +145,8 @@ |
||
145 | 145 | |
146 | 146 | if ( $posted_field->required == '1' && FrmAppHelper::is_empty_value( $value ) ) { |
147 | 147 | $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $posted_field, 'blank' ); |
148 | - } elseif ( ! isset( $_POST['item_name'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
148 | + } elseif ( ! isset( $_POST['item_name'] ) ) { |
|
149 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
149 | 150 | self::maybe_add_item_name( $value, $posted_field ); |
150 | 151 | } |
151 | 152 |
@@ -465,7 +465,8 @@ |
||
465 | 465 | } |
466 | 466 | |
467 | 467 | private function is_license_revoked() { |
468 | - if ( empty( $this->license ) || empty( $this->plugin_slug ) || isset( $_POST['license'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
468 | + if ( empty( $this->license ) || empty( $this->plugin_slug ) || isset( $_POST['license'] ) ) { |
|
469 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
469 | 470 | return; |
470 | 471 | } |
471 | 472 |