Repository navigation
fix(starter): check-dist reads CSS url() for WordPress site paths; JSON-LD is not runtime - #753
Merged
Merged
Conversation
…ON-LD is not runtime Follow-up to #752 (review). A site path into wp-content inside a style attribute or a <style> element is checked again: it was caught by the old whole-page match and passed silently after #752. JSON-LD names addresses and loads none, so an image on another site's wp-content there passes, as it does in og:image.
✅ Deploy Preview for contentrain-ai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What
A follow-up to #752, from its review.
url():scripts/check-dist.mjsreadsurl()addresses instyleattributes (entity-quoted) and in<style>elements. A site path (relative or root) into wp-content / wp-includes / wp-json fails the page. fix(starter): check-dist flags WordPress runtime, not links to other sites; knip keeps social.ts #752's attribute-only check had let it pass silently. Aurl()pointing to another site passes.application/ld+json, as the page's script filter already does. JSON-LD names addresses but loads none, so an image on another site's wp-content passes there, as it does inog:image.Checked
On a migrated site's build (245 pages):
style="background:url("/wp-content/…")"<style>…url(/wp-content/themes/…)</style>style="…url(https://other.org/wp-content/…)"fetch("/wp-json/…")pnpm lint0, typecheck (hook) 0. The starter is not a workspace package, so there is no changeset.