PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.6.3
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.6.3
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/CleanUp.class.php +8 -1 5.1.5 → 5.6.3 View file →
@@ -80,10 +80,17 @@
80 80 }
81 81
82 82 /**
83 83 * Delete the given hash entry
84 + *
85 + * No native return type: `int|false` is a PHP 8.0 union type and the
86 + * plugin supports PHP 7.4.
87 + *
88 + * @param string $hash The opt-in hash to delete.
89 + *
90 + * @return int|false Number of deleted rows, or false on failure.
84 91 */
85 - public function deleteByHash(string $hash): int|false{
92 + public function deleteByHash(string $hash){
86 93 // Authorization check (fail fast)
87 94 if (!current_user_can('manage_options')) {
88 95 $this->get_logger()->warning('Unauthorized attempt to delete opt-in entry.', [
89 96 'plugin' => 'double-opt-in',