=== Comment Image Boost ===
Contributors: audityseo, freemius
Tags: comment attachments, comment images, image upload, photo comments, social proof
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.16
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Attach images to WordPress comments with drag-and-drop, preview before posting, admin moderation, and lightbox viewer.

== Description ==

Comment Image Boost helps publishers, communities, stores, directories, and content sites collect photo comments from real readers. Visitors can upload an image while commenting, preview it before submitting, and site owners can moderate attached images from the comment edit screen.

Free features:

* Single image upload on WordPress comment forms.
* Drag and drop upload support.
* Image preview before submission.
* JPG, JPEG, and PNG validation.
* Maximum upload size up to 2 MB.
* Secure upload processing with WordPress nonces and wp_handle_upload().
* Custom comment-image upload folder.
* Optional Media Library registration with WordPress thumbnails.
* EXIF/GPS metadata removal.
* Frontend display before or after the comment text.
* Configurable display size and preview size.
* Lazy-loaded frontend images.
* Lightbox image viewer.
* Visual "Photo comment" badges.
* Comment edit-screen image moderation.
* Dedicated image moderation screen with filters and bulk actions.
* Orphan image cleanup tool.
* Environment diagnostics in wp-admin.

Pro features powered by Freemius:

* Multiple images per comment.
* Required image comments for campaigns and contests.
* Image captions.
* WebP and AVIF uploads.
* Higher upload limits.
* Horizontal comment image layout.
* Global image gallery shortcodes.
* Gutenberg gallery block.
* Elementor gallery widget.
* Gallery columns and carousel layout with navigation arrows.
* Post type and category targeting.
* Automatic resize and compression.
* Progressive JPEG and interlaced PNG output.

== Installation ==

1. Upload the `comment-image-boost` folder to `/wp-content/plugins/`.
2. Activate Comment Image Boost in WordPress.
3. Go to Comment Images in wp-admin and review the settings.
4. Review the Freemius settings in `comment-image-boost.php` before distributing free or premium builds.

== Changelog ==

= 1.0.16 =
* Updated plugin author, Plugin URI, and Author URI to AuditySEO.

= 1.0.15 =
* Added a friendly pending email confirmation card for Freemius opt-in follow-up.

= 1.0.14 =
* Version update for the next distribution build.

= 1.0.13 =
* Version update for the next distribution build.

= 1.0.12 =
* Lightbox alignment fix.

= 1.0.11 =
* Fixed comment image uploads to the custom upload directory by avoiding recursive wp_upload_dir() calls inside the upload_dir filter.
* Added the local plugin logo for Freemius update details and internal Freemius pages.
* Removed temporary upload diagnostics after confirming the image save flow.
* Corrected the Free/Pro feature split in the readme to match the plugin code.

= 1.0.10 =
* Fixed moderation orphan-file scan compatibility on PHP environments without GLOB_BRACE.

= 1.0.9 =
* Adjusted PHPCS upload handling annotations for Plugin Check compatibility.

= 1.0.8 =
* Clarified nonce verification handling for centralized upload processing.

= 1.0.7 =
* Hardened sanitization, validation, and escaping for WordPress.org review compliance.
* Sanitized stored image metadata before reuse in admin and frontend output.
* Regenerated the distribution archive with development-only files excluded.

= 1.0.6 =
* Updated public prefixes to ciboost for WordPress.org naming collision compliance.
* Normalized and sanitized upload file data before validation and saving.
* Tightened distribution ignores for local archives and Freemius development-only files.

= 1.0.5 =
* Moved admin inline CSS and JavaScript into enqueued assets for WordPress.org review compliance.
* Updated plugin contributor metadata.

= 1.0.3 =
* Addressed remaining WordPress Plugin Checker warnings for premium integrations, image compression, and file line endings.

= 1.0.2 =
* Escaped all dynamic output with esc_html__, esc_html_e, esc_html, and esc_attr.
* Sanitized all $_POST input at point of access with sanitize_text_field and wp_unslash.
* Added nonce field and wp_verify_nonce check on comment image upload form.
* Excluded .distignore from distribution ZIP.

= 1.0.1 =
* Adopted Freemius set_basename guard and __premium_only file structure.
* Premium files (compression, integrations) are now physically stripped from the free version.
* Added reusable upgrade modal for free users.
* Replaced move_uploaded_file with wp_handle_upload for WordPress.org compliance.
* Added License header to plugin file.
* Updated Tested up to 6.9.

= 1.0.0 =
* Initial standalone release.
