| @@ -77,9 +77,16 @@ | ||
| 77 | 77 | return self::NONCE_ACTION_PREF . $form_id; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | public function get_nonce_field(): string { |
| 81 | - return wp_nonce_field( $this->get_nonce_id(), self::KEY, true, false ); | |
| 81 | + $form_id = jet_fb_live()->form_id; | |
| 82 | + $field_id = self::KEY . '_' . $form_id; | |
| 83 | + return sprintf( | |
| 84 | + '<input type="hidden" id="%1$s" name="%2$s" value="%3$s" />', | |
| 85 | + esc_attr( $field_id ), | |
| 86 | + esc_attr( self::KEY ), | |
| 87 | + esc_attr( wp_create_nonce( $this->get_nonce_id() ) ) | |
| 88 | + ) . wp_referer_field( false ); | |
| 82 | 89 | } |
| 83 | 90 | |
| 84 | 91 | public function verify( $nonce ): bool { |
| 85 | 92 | return ( ! jet_fb_live_args()->is_use_nonce() || wp_verify_nonce( $nonce, $this->get_nonce_id() ) ); |