v1.6.2
What's Changed
Fixed
- Manifest icons audited as
missingon WordPress / Drupal consumers. A
site.webmanifestis fetched and parsed by the browser, so its iconsrc
values must be real URLs — under a theme that means
/wp-content/themes/<theme>/static/images/touch/icon-192.png.FaviconAudit
joined those ontostatic_pathanyway, looking for
<static_path>/wp-content/themes/<theme>/static/images/…— a path that exists
nowhere — so every manifest icon reportedmissingwith the file sitting right
there on disk (andmaskable_iconnever resolved). Consumer paths are now
stripped back to static-root-relative before any disk read via the new
PathGuard::stripAssetBase(), the inverse ofRenderer::resolveAssetUrl().
Same treatment for thefavicon:/og_image:yaml keys, so a project that
worked around the sibling<img src>bug by hardcoding the full theme path
stops reporting falsemissingrows too. The echoedpathstays exactly as
authored, and browser-facing values keep the URL the manifest actually serves.
FaviconAudit::run()/OgImageAudit::run()take the asset base as a new
optional trailing argument (default''— standalone behaviour unchanged).
Pull Requests
- #99 — fix(audit): strip the consumer asset base before disk lookups
Full Changelog: v1.6.1...v1.6.2