@@ -491,7 +491,8 @@ |
||
| 491 | 491 | |
| 492 | 492 | public static function process_entry( $errors = '', $ajax = false ) { |
| 493 | 493 | $form_id = FrmAppHelper::get_post_param( 'form_id', '', 'absint' ); |
| 494 | - if ( FrmAppHelper::is_admin() || empty( $_POST ) || empty( $form_id ) || ! isset( $_POST['item_key'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 494 | + if ( FrmAppHelper::is_admin() || empty( $_POST ) || empty( $form_id ) || ! isset( $_POST['item_key'] ) ) { |
|
| 495 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 495 | 496 | return; |
| 496 | 497 | } |
| 497 | 498 | |
@@ -42,7 +42,8 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | // Only do this for single site installs. |
| 45 | - if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 45 | + if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { |
|
| 46 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 46 | 47 | return; |
| 47 | 48 | } |
| 48 | 49 | |
@@ -67,7 +67,8 @@ |
||
| 67 | 67 | $new_instance = (array) $new_instance; |
| 68 | 68 | $this->id = $new_instance['ID']; |
| 69 | 69 | |
| 70 | - if ( $id != $this->id || ! $_POST || ! isset( $_POST['frm_style_setting'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 70 | + if ( $id != $this->id || ! $_POST || ! isset( $_POST['frm_style_setting'] ) ) { |
|
| 71 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 71 | 72 | // Don't continue if not saving this style. |
| 72 | 73 | continue; |
| 73 | 74 | } |
@@ -285,7 +285,8 @@ |
||
| 285 | 285 | public static function get_settings_for_output( $style ) { |
| 286 | 286 | if ( self::previewing_style() ) { |
| 287 | 287 | $frm_style = new FrmStyle(); |
| 288 | - if ( isset( $_POST['frm_style_setting'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 288 | + if ( isset( $_POST['frm_style_setting'] ) ) { |
|
| 289 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 289 | 290 | |
| 290 | 291 | // Sanitizing is done later. |
| 291 | 292 | $posted = wp_unslash( $_POST['frm_style_setting'] ); //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
@@ -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 | |
@@ -138,7 +138,8 @@ |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | // Only do this for single site installs. |
| 141 | - if ( is_network_admin() ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 141 | + if ( is_network_admin() ) { |
|
| 142 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 142 | 143 | self::mark_onboarding_as_skipped(); |
| 143 | 144 | return; |
| 144 | 145 | } |
@@ -524,7 +524,8 @@ discard block |
||
| 524 | 524 | |
| 525 | 525 | if ( $src === 'get' ) { |
| 526 | 526 | $value = isset( $_POST[ $param ] ) ? wp_unslash( $_POST[ $param ] ) : ( isset( $_GET[ $param ] ) ? wp_unslash( $_GET[ $param ] ) : $default ); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 527 | - if ( ! isset( $_POST[ $param ] ) && isset( $_GET[ $param ] ) && ! is_array( $value ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 527 | + if ( ! isset( $_POST[ $param ] ) && isset( $_GET[ $param ] ) && ! is_array( $value ) ) { |
|
| 528 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 528 | 529 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 529 | 530 | $value = htmlspecialchars_decode( wp_unslash( $_GET[ $param ] ) ); |
| 530 | 531 | } |
@@ -612,7 +613,8 @@ discard block |
||
| 612 | 613 | $value = wp_unslash( $_GET[ $args['param'] ] ); |
| 613 | 614 | } |
| 614 | 615 | } elseif ( $args['type'] === 'post' ) { |
| 615 | - if ( isset( $_POST[ $args['param'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 616 | + if ( isset( $_POST[ $args['param'] ] ) ) { |
|
| 617 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
| 616 | 618 | // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
| 617 | 619 | $value = wp_unslash( $_POST[ $args['param'] ] ); |
| 618 | 620 | if ( $args['serialized'] === true && is_serialized_string( $value ) && is_serialized( $value ) ) { |
@@ -14,20 +14,26 @@ |
||
| 14 | 14 | <h4><?php echo esc_html( $counter['heading'] ); ?></h4> |
| 15 | 15 | <?php if ( isset( $counter['cta'] ) && isset( $counter['cta']['display'] ) && true === $counter['cta']['display'] ) : ?> |
| 16 | 16 | <a href="<?php echo esc_url( $counter['cta']['link'] ); ?>"><?php echo esc_html( $counter['cta']['title'] ); ?></a> |
| 17 | - <?php else : ?> |
|
| 17 | + <?php else { |
|
| 18 | + : ?> |
|
| 18 | 19 | <?php if ( 'currency' === $counter['type'] ) : ?> |
| 19 | 20 | <div class="frm-flex-box frm-gap-md"> |
| 20 | 21 | <?php foreach ( $counter['items'] as $item ) : ?> |
| 21 | 22 | <b> |
| 22 | - <?php echo esc_attr( $item['counter_label']['symbol_left'] ); ?> |
|
| 23 | + <?php echo esc_attr( $item['counter_label']['symbol_left'] ); |
|
| 24 | +} |
|
| 25 | +?> |
|
| 23 | 26 | <span class="frm-counter" data-type="<?php echo esc_attr( $counter['type'] ); ?>" data-locale="<?php echo esc_attr( get_locale() ); ?>" data-counter="<?php echo (int) $item['counter']; ?>"><?php echo (int) $item['counter']; ?></span> |
| 24 | 27 | <?php echo esc_attr( $item['counter_label']['symbol_right'] ); ?> |
| 25 | 28 | </b> |
| 26 | 29 | <?php endforeach; ?> |
| 27 | 30 | </div> |
| 28 | - <?php else : ?> |
|
| 31 | + <?php else { |
|
| 32 | + : ?> |
|
| 29 | 33 | <b> |
| 30 | - <span class="frm-counter" data-type="<?php echo esc_attr( $counter['type'] ); ?>" data-locale="<?php echo esc_attr( get_locale() ); ?>" data-counter="<?php echo (int) $counter['counter']; ?>"><?php echo (int) $counter['counter']; ?></span> |
|
| 34 | + <span class="frm-counter" data-type="<?php echo esc_attr( $counter['type'] ); |
|
| 35 | +} |
|
| 36 | +?>" data-locale="<?php echo esc_attr( get_locale() ); ?>" data-counter="<?php echo (int) $counter['counter']; ?>"><?php echo (int) $counter['counter']; ?></span> |
|
| 31 | 37 | </b> |
| 32 | 38 | <?php endif; ?> |
| 33 | 39 | <?php endif; ?> |