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.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 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.51 3.0.60 3.0.61 3.0.62 All 38 releases
← All changes | core/assets/doi-error-notification.js +3 -11 5.6.2 → 5.5.0 View file →
@@ -59,12 +59,9 @@
59 59 window.location.href = response.data.redirect_url;
60 60 return;
61 61 }
62 62
63 - // A toast that stands in for a hidden success message stays until
64 - // the visitor closes it — otherwise the form is left saying
65 - // nothing at all after ten seconds.
66 - showNotification( response.data.error.message, 'error', !! response.data.error.hide_confirmation );
63 + showNotification( response.data.error.message, 'error' );
67 64
68 65 // Prevent duplicate checks for 5 seconds
69 66 cooldown = true;
70 67 setTimeout( function () {
@@ -128,12 +125,11 @@
128 125 /**
129 126 * Show a toast notification.
130 127 *
131 128 * @param {string} message The message to display.
132 - * @param {string} [type] 'error' (default) or 'success' — controls colour + icon.
133 - * @param {boolean} [sticky] Keep it until the visitor closes it.
129 + * @param {string} [type] 'error' (default) or 'success' — controls colour + icon.
134 130 */
135 - function showNotification( message, type, sticky ) {
131 + function showNotification( message, type ) {
136 132 type = type === 'success' ? 'success' : 'error';
137 133
138 134 var existing = document.querySelector( '.doi-error-notification' );
139 135 if ( existing ) {
@@ -176,12 +172,8 @@
176 172 // Trigger enter animation
177 173 requestAnimationFrame( function () {
178 174 notification.classList.add( 'doi-error-notification--visible' );
179 175 } );
180 -
181 - if ( sticky ) {
182 - return;
183 - }
184 176
185 177 // Auto-dismiss after 10 seconds
186 178 setTimeout( function () {
187 179 dismiss( notification );