We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 163d121 commit 0c875bcCopy full SHA for 0c875bc
1 file changed
lib/Cleantalk/ApbctWP/Honeypot.php
@@ -117,7 +117,11 @@ private static function getHoneypotFilledFields()
117
118
// AltSessions way to collect search forms honeypot
119
if ( $apbct->settings['forms__search_test'] ) {
120
- $honeypot_potential_values['apbct__email_id__search_form'] = AltSessions::get("apbct_search_form__honeypot_value");
+ $alt_session_data = AltSessions::get("apbct_search_form__honeypot_value");
121
+ if (!empty($alt_session_data)) {
122
+ $honeypot_potential_values['apbct__email_id__search_form'] = $alt_session_data;
123
+ $hp_exists = true;
124
+ }
125
}
126
127
// if source is filled then pass them to params as additional fields
0 commit comments