Repository navigation
v1.0.2 - Bug Fixes & Deep CSS/Theme Scanner
π Release v1.0.2 β Bug Fixes & Deep CSS/Theme Scanning
This update resolves critical false positives with WordPress attachment parent associations and significantly enhances theme and CSS scanning capabilities.
π Bug Fixes
- Eliminated False
Attached to Post (Parent)Usages: WordPress automatically associates an attachment with a post'spost_parentif uploaded from that post edit screen, even if the media is never inserted into the content or is subsequently deleted. WMUT no longer considerspost_parentalone as an active usage, eliminating false positives for uninserted media (e.g.,products-img.jpg). - Cleaned Status Hierarchy: Fixed an issue where media replaced in CSS or content remained marked as used due to stale parent associations.
β¨ Enhancements
- Deep CSS
url(...)Scanning: Scans all stylesheet files (style.css, child theme CSS, custom styles) forurl(...)declarations (supporting single quotes, double quotes, unquoted paths, query parameters like?v=1, and SVG hash anchors). - Template & Script Attribute Detection: Added detection for HTML/template image references in
src,data-src,data-bg, andsrcsetattributes across theme templates. - Quoted Media String Parsing: Catches media filenames referenced inside PHP variables and JavaScript configs within theme files.
- Fixed Readme Menu Item Typo: Corrected
nav_menu_itemformatting in plugin documentation.
π¦ Download & Installation
Download wp-media-usage-tracker-v1.0.2.zip below and install via WordPress Admin > Plugins > Add New > Upload Plugin, or extract to your wp-content/plugins/ directory.