Repository navigation
Releases
Releases · nicksull/the-bonnie-situation
1.3.0
- New: Bonnie records every retention run and warns in Site Health and with an admin notice when a purge fails, or when none has succeeded for 48 hours (for example, WP-Cron isn't running). A missing daily cron event is recreated automatically.
- Fix: a database error during a purge could be reported as a success and the purge skipped without any warning. Errors are now caught and reported, and the delete is rolled back.
- Fix: the purge audit log records the rows actually deleted. Previously a failed delete could be logged as successful.
- The global sweep and add-on retention scopes now run independently, so one failing no longer stops the other.
- For add-ons: new bonnie_retention_failed, bonnie_retention_stale and bonnie_retention_recovered actions, and bonnie()->retention_status().
1.2.0
What's new
Import from Flamingo and CFDB7. Bonnie → Settings → Import brings your existing Contact Form 7 entries across in one click, with Flamingo or CFDB7 active or deactivated.
- Entries keep their original date and form, and are stored under your current privacy settings: IP address, user agent and referrer are dropped unless you've turned them on.
- Spam is skipped unless you store spam, and so is anything already older than your retention window.
- Running it again only imports new entries. Nothing in the source plugin is changed — delete the old entries there once you've checked the import.
Fixes
- Contact Form 7's storage opt-outs are now honoured. Forms with
do_not_store: true, and submissions where aconsent_for:storagecheckbox is left unticked, are no longer stored. Values ofdo-not-storeform tags (quiz answers, CAPTCHA) are dropped.
For developers
Bonnie_Services::importer()exposes the importer to add-ons; Bonnie Pro 1.2.0 uses it forwp bonnie import.- Imported entries fire
bonnie_before_store,bonnie_before_store_metaandbonnie_after_storelike live captures. The form argument isnullwhen the entry's form no longer exists. Seedocs/HOOKS.md.
No database changes.
- The Bonnie Situation 1.2.0 — Flamingo / CFDB7 importer, honour CF7 storage opt-outs by @nicksull in #2
Full Changelog: 1.1.0...1.2.0
1.1.0
- Add the
bonnie.settings.cardsJS filter so add-ons can add their own cards to the settings screen. - Database update: name, email, subject and user-agent columns become TEXT, and a new
email_hashcolumn supports exact-email lookups, so add-ons can store submissions encrypted. Runs automatically on update. - Add the
bonnie_email_hashfilter; search and the WordPress personal-data export/erase tools find encrypted submissions by exact email. - Encrypted values are shown as "[Encrypted]" rather than raw if the add-on that can decrypt them isn't active.
- Add the
bonnie_submission_display_ipfilter so add-ons can annotate the IP shown on a submission's detail view (display only; the stored value is unchanged). - Upgrade links to Bonnie Pro now carry campaign tags.