=== Walstar Clear Media Engine ===
Contributors: shivrajjadhav, walstartechnologies, pratapvashi123, walstarmedia
Tags: media cleaner, unused images, media cleanup, image optimizer, clear media engine, wordpress media library
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 7.0
Stable tag: 1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Remove unused images from your WordPress media library.

== Description ==

Walstar Clear Media Engine helps you find and delete unused images from your WordPress Media Library.

It scans your WordPress site and detects images that are not used in:
- Post content
- Featured images
- Elementor page builder content
- Media references via attachment IDs
- WooCommerce product image galleries

This helps reduce server storage usage and improves website performance by removing unnecessary media files.

Important: Deleted images cannot be recovered.

== Features ==

- Scan unused images in Media Library
- Detect usage in posts and pages
- Detect featured images
- Elementor compatibility support
- WooCommerce product gallery support
- Bulk selection and deletion
- Simple and fast admin interface

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Tools → Media Cleaner**
4. Click "Scan for Unused Images"

== Frequently Asked Questions ==

= Will this plugin delete images automatically? =
No. It only deletes images when manually selected by the admin.

= Can I recover deleted images? =
No. Deleted images are permanently removed from the Media Library.

= Does it work with Elementor? =
Yes, it detects images used in Elementor content.

= Does it work with WooCommerce? =
Yes, it detects images used in WooCommerce product galleries.

= Is it safe to use? =
Yes, but always take a backup before deleting images.

== Screenshots ==

1. Media Cleaner dashboard
2. Unused images list
3. Bulk selection mode

== Changelog ==

= 1.2 =
- Fixed SQL LIKE wildcard escaping to prevent false positives on filenames containing % or _
- Fixed permission check to use wp_die() instead of return after output is sent
- Improved performance: added no_found_rows, update_post_meta_cache, update_post_term_cache flags to get_posts()
- Added modal close on backdrop click and Escape key
- Added keyboard accessibility to modal close button
- Moved inline styles to stylesheet
- Added missing alt attributes to images
- Fixed version numbers in enqueued asset handles

= 1.1 =
- Initial release
- Added unused image detection
- Added bulk delete feature
- Elementor support added

== Upgrade Notice ==

= 1.2 =
Security and performance improvements. Upgrade recommended.
