wp-blocks / cf7-antispam

☂️ A trustworthy antispam plugin for Contact Form 7.
Other
14 stars 4 forks source link

Automatic Unban setting jumps back to 5min #92

Open Yerrun opened 10 months ago

Yerrun commented 10 months ago

I have quite some cron job times in the Automatic Unban list. When I pick one from the list (other than 5min) and save it, the Automatic Unban time is saved.

But if I change any other setting on the page and save again, the Automatic Unban time jumps back to 5min.

erikyo commented 10 months ago

this is a minor problem but you are right that it is not correct in operation and you should check whether the settings have changed before resetting the timer

ref. https://github.com/wp-blocks/cf7-antispam/blob/cce2c6be377e84d6840830db5ecafc77fd27ef19/admin/CF7_AntiSpam_Admin_Customizations.php#L983

Yerrun commented 10 months ago

Yes, it's just a small bug. But it's just annoying that you have to save twice instead of once.