Skip to content

v1.0.2 - Bug Fixes & Deep CSS/Theme Scanner

Choose a tag to compare

@dev071 dev071 released this 27 Oct 05:06
· 1 commit to main since this release

πŸš€ 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's post_parent if uploaded from that post edit screen, even if the media is never inserted into the content or is subsequently deleted. WMUT no longer considers post_parent alone 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) for url(...) 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, and srcset attributes 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_item formatting 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.