Repository navigation
v1.7.2 - Fix scan inconsistency + Why unused? button
What's fixed
Scan now gives the same result every time
- Root cause of 26 vs 52 inconsistency: the URL reference blobs (post content, postmeta, options, termmeta) were stored in PHP transients across batches. On some hosting configs, large serialized strings get silently truncated or returned stale from the object cache — making strpos() miss URLs on one run and catch them on another.
- Fix: URL blobs are now re-fetched fresh from the database on every batch (4 extra queries per batch × 6 batches = 24 total). Only the compact ID hash maps stay cached in transients.
- Also: WP_Query now deduplicates attachment IDs and suppresses third-party filter hooks that could add duplicate rows.
"Why unused?" button on every image card
- Click Why unused? on any result card to instantly check where (or confirm nowhere) that image is referenced — post content, featured images, galleries, options, or term meta.
- Shows the exact location so you can verify before deleting.
How to update
Install v1.7.2, then re-run the scan. Results should be consistent across multiple runs.