This PR fixes the missing security checks in AJAX dismiss features.
Motivation
Fixes #159.
Testing Procedure
This PR affects 2 dismiss notice actions. Dismissing both should work as intended and shouldn't produce any issues or errors in the logs.
Product Education Banners
User Feedback Notice
Follow these steps to see the User Feedback Notice:
Find and delete the option wp_mail_logging_user_feedback_notice in your wp_options table.
Then find the option wp_mail_logging_activated_time in your wp_options. It should have a timestamp value like 1483200175. You can just subtract 1 in the second to the left value, in my case I updated the value to 1383200175. This will simulate that the plugin was activated some time ago.
Make sure that your WP Mail Logging has at least 10 email logs.
Description
This PR fixes the missing security checks in AJAX dismiss features.
Motivation
Fixes #159.
Testing Procedure
This PR affects 2 dismiss notice actions. Dismissing both should work as intended and shouldn't produce any issues or errors in the logs.
Product Education Banners
User Feedback Notice
Follow these steps to see the User Feedback Notice:
wp_mail_logging_user_feedback_notice
in yourwp_options
table.wp_mail_logging_activated_time
in yourwp_options
. It should have a timestamp value like1483200175
. You can just subtract1
in the second to the left value, in my case I updated the value to1383200175
. This will simulate that the plugin was activated some time ago.10
email logs.