Repository navigation
Test detection ordering around redirects and login requests - #130
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When another plugin redirects and exits before WebDecoy’s
initpriority1 handler, that request cannot produce a general front-end detection. Later redirects preserve the recorded detection. This PR adds a repeatable 14-case hook-order fixture and documents that observation boundary, including the intentional admin/AJAX exclusions.The fixture uses the real WordPress hook dispatcher and unmodified plugin constructor, scoring and logging methods, with in-memory WordPress service adapters. Ordinary cases use normal bot scoring; only the reserved-test control uses
WebDecoy-Test. It checks both equal-priority registration orders, early bootstrap exits, later page/login redirects and dedicated hook registration. It does not claim full mixed-plugin HTTP or database validation.Validation: 14/14 focused cases and 229/229 existing tests pass with PHP8.5.10 and WordPress7.1.4 core hook files in a read-only, network-denied sandbox. Reviewed current official Redirection5.10.1, WPS Hide Login1.9.20 and Wordfence9.1.1 sources; full installed-stack certification remains outside this check. No production behavior changes.