WP_Route
WP_Route copied to clipboard
Check that routes actually equal
We discovered that when you register a handler for a path this plugin invokes it for all paths that have euqal amount of segments.
Ie: you register /bar/{foo}
but the plugin invokes the handler for /*/{foo}
.
This PR fixes that.