PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.5.0
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.5.0
5.12.0 5.13.0 5.13.1 5.11.0 5.10.0 5.9.0 5.8.0 5.8.1 5.7.0 5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 All 47 releases
← All changes | src/FormSettings/FormSettingsService.php +0 -24 5.12.0 → 5.5.0 View file →
@@ -10,9 +10,8 @@
10 10
11 11 use Forge12\DoubleOptIn\EmailTemplates\EmailTemplateRepository;
12 12 use Forge12\DoubleOptIn\Health\StaleConsentFieldCheck;
13 13 use Forge12\DoubleOptIn\Integration\FormIntegrationRegistry;
14 -use Forge12\DoubleOptIn\Integration\FieldTextProviderInterface;
15 14 use Forge12\DoubleOptIn\Integration\SubmittedContent;
16 15 use Forge12\Shared\LoggerInterface;
17 16
18 17 if ( ! defined( 'ABSPATH' ) ) {
@@ -339,31 +338,8 @@
339 338 $fieldsList[] = array(
340 339 'name' => (string) $name,
341 340 'label' => $label,
342 341 );
343 - }
344 -
345 - // The wording next to each field, where the integration knows it,
346 - // so the consent tab can compare it with the stored consent text.
347 - $texts = $integrationInstance instanceof FieldTextProviderInterface ? $integrationInstance->getFieldTexts( $formId ) : array();
348 - /**
349 - * Visible text per field name (e.g. the label of a consent checkbox).
350 - *
351 - * @since 5.9.0
352 - *
353 - * @param array<string, string> $texts Field name => plain text.
354 - * @param int|string $formId The form ID.
355 - * @param string $integration The integration identifier.
356 - */
357 - $texts = apply_filters( 'f12_doi_form_field_texts', $texts, $formId, $integrationInstance->getIdentifier() );
358 - if ( is_array( $texts ) ) {
359 - foreach ( $fieldsList as &$entry ) {
360 - $text = $texts[ $entry['name'] ] ?? '';
361 - if ( is_string( $text ) && trim( $text ) !== '' ) {
362 - $entry['text'] = trim( $text );
363 - }
364 - }
365 - unset( $entry );
366 342 }
367 343
368 344 // Reconcile the stored consent field with the form's real field
369 345 // names. Settings written before 5.3.2 went through