Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
Addresses https://patchstack.com/database/report-preview/c3c10882-9241-4bc3-a589-29f743bcf494?pin=nOv31SVbrrIdLYDH
Closes #367
How to test the Change
Get yourself banned in any ways, like posting tons of comments. You should see a 'Your IP has been flagged as spam/malicious'. Then make another comment and this time, add ?anything.ico in the url.
Go to http://127.0.0.1/wordpress/wp-admin/options-general.php?page=wordpress-zero-spam-settings&subview=settings and add an ip entry in the ip address whitelist, like 127.0.0.1. Get yourself banned by any means allowed by the plugin. Make another request, but this time, add a X-Forwarded-For header with the value 127.0.0.1
Changelog Entry
Credits
Props @bmarshall511
Checklist: