403)); } if (isset($_POST['dwarpal_spam_settings']) && check_admin_referer('dwarpal_spam_settings')) { update_option('dwarpal_spam_prevention_enabled', isset($_POST['dwarpal_spam_prevention_enabled']) ? 1 : 0); update_option('dwarpal_spam_comment_limit', isset($_POST['dwarpal_spam_comment_limit']) ? absint(wp_unslash($_POST['dwarpal_spam_comment_limit'])) : 5); update_option('dwarpal_spam_permanent_block_limit', isset($_POST['dwarpal_spam_permanent_block_limit']) ? absint(wp_unslash($_POST['dwarpal_spam_permanent_block_limit'])) : 10); echo '
' . esc_html__('Settings saved.', 'dwarpal') . '