Repository navigation
fix: count a subsite's own home host as its uploads host - #26
Merged
Merged
Conversation
On a Bedrock network WP_CONTENT_URL follows the request's host, so an audit run as the main site saw a subsite's uploads on the main host and flagged every upload link the subsite stored on its own domain, though Gravity Forms stores and deletes them there. A subsite's home host now counts as its uploads host too; any other host is still flagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
On a Bedrock network,
WP_CONTENT_URLcomes fromWP_HOME, which follows the request's host. An audit run as the main site therefore sees a subsite's uploads URL on the main host. It then flagged every Gravity Forms link the subsite stored on its own domain asretention:upload-host, even though the subsite stores and deletes those links on that host. On snellmanecom that was 189 links on snellmanpetfood.com reported as "uploads on snellmanpetfood.generodigital.com".A subsite's home host now counts as an uploads host as well. Any other host (an old domain, www vs non-www) is still flagged, and single sites and main sites are unchanged.
Tested:
upload_hosts; it reported 189 links on blog 2 before.go test ./...passes.🤖 Generated with Claude Code