Skip to content

Flag Gravity Forms setups that lose submissions - #1

Merged
oxyc merged 3 commits into
mainfrom
feat/honeypot-abort
Nov 12, 2026
Merged

oxyc merged 3 commits into
mainfrom
feat/honeypot-abort

Conversation

@oxyc

@oxyc oxyc commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

The retention check now flags three ways real submissions are lost, each a review flag:

  • active forms with the honeypot on and set to "Do not create an entry" (honeypotAction: abort), one flag per site. Unset counts as spam, Gravity Forms' default since 2.9.8
  • CleanTalk testing contact forms with its "save Gravity Forms spam" setting off: it then deletes the entries it judges spam (GFFormsModel::delete_lead)
  • where Gravity Forms is active, a gform_state_lifespan under 366 days as mu-plugins set it (default 48 h): every submission from a page cached longer is rejected. Themes and plugins aren't loaded by the collector, so a theme's filter doesn't count; the fix goes in a mu-plugin

Tests pass (TestRetention covers all three). Checked read-only on one multisite: 43 forms keep honeypot catches as spam, 16 have no honeypot, none throw them away; the lifespan reads 604800 with plugins and themes skipped, so it is flagged until https://github.com/generoi/mutti/pull/229 is deployed. One CleanTalk site has saving on.

🤖 Generated with Claude Code

oxyc and others added 2 commits November 12, 2026 11:58
A form with its honeypot set to "Do not create an entry" loses every real
person the honeypot catches (a stale page failing state validation) without
a trace. The retention check now lists those forms, one review flag per
site, so they can be set to keep caught submissions as spam.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Unless its "save Gravity Forms spam" setting is on, CleanTalk deletes the
entry, so a real person it catches is lost. One review flag per blog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc oxyc changed the title Flag Gravity Forms forms whose honeypot throws caught submissions away Flag Gravity Forms spam that is thrown away instead of kept Nov 12, 2026
Gravity Forms rejects every submission from a page cached longer than its
state token lives (48 h by default). Where Gravity Forms is active, the
collector reads gform_state_lifespan as mu-plugins set it and the check
flags anything under 366 days.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc oxyc changed the title Flag Gravity Forms spam that is thrown away instead of kept Flag Gravity Forms setups that lose submissions Nov 12, 2026
@oxyc
oxyc merged commit 0144758 into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant