== Changelog ==

= 2.1.12
* Correctly handle sub-sizes that are defined with cropping ON. Never send them to remote analysis.

= 2.1.11
* Handle case where WP has added "-scaled" suffix to image name, and images are uploaded before plugin was installed.
* Make sure to always re-create requested sizes only.

= 2.1.10
* Make sure image metadata is always up-to-date with registered image sizes.
* Always return error message on failed admin-ajax calls.
* Block activation on non-supported WP versions.
* Rename sub-menu to Dashboard.

= 2.1.9
* Fix toast to be compatible with WP 7.0 style changes.
* If htaccess rewrite rules cannot be added automatically, show instructions to user with the exact content to add.

= 2.1.8
* Update banner images and screenshots for WordPress.org

= 2.1.7
* Publish!

= 2.1.5
* CI prep for SVN deployment, no code changes

= 2.1.3
* Check file type before trying to rename to .webp extension. This should prevent issues with non-image uploads like ZIP files, plugin/theme installations etc.

= 2.1.2
* Bulk : Set item-per-page back to 200 by default.
* Remove some too verbose logging.
* Optimize image list and count fetching.

= 2.1.1
* Update tests

= 2.1.0
* On upload, if automatic WebP conversion is on, rename file to .webp extension immediately.
* Store image sizes in config for reliability.
* Bulk : Remove "double loading" of image list.
* Bulk : Remove backend pagination (for now). Full image list is constructed anyway on page load so we can just return it.
* Bulk : Search not searches on all images, not just current page. 

= 2.0.15
* Fix WPML language detection for attachments without language assigned, fallback to WPML default language instead

= 2.0.14
* Handle bugs in WPML Media Translation: WebP conversion not working in some cases when media binaries get duplicated

= 2.0.13
* Bulk : Make sure frontend updates with actual data from backend
* Bulk : Make WebP conversion non-fatal error

= 2.0.12
* Update tests

= 2.0.11
* Removed too strict ajax params check.
* Make sure to mark images before trying to remote convert.
* Better error message when invalid API key or domain not connected.

= 2.0.10
* Unified "license" as "API key" in all user-facing text and code.

= 2.0.9
* Simplified settings saving and handling. Also better notifications for errors and success in admin view.

= 2.0.8
* Update tests

= 2.0.7
* Fix rewrite checks.
* Add plugin name to notices for better clarity.

= 2.0.6
* Remove htaccess rewrites completely on uninstall

= 2.0.5
* Update tests
* Add webp rewrites
* Fix htaccess self-test
* Add content header rewrites
* Better error reporting, admin button to fix rewrite rules.

= 2.0.4
* Change backup directory to match plugin slug
* Fixed media library frontend config not loading
* Use enable_debug_logging to control JS logging as well.

= 2.0.3
* Added phpcs ignores and re-formatted sanitation to pass phpcs checks

= 2.0.2
* Refactoring code for phpcs compliance

= 2.0.0
* Major release
* Removed wsi_imgae.php entry point in favor of GET-param based ImageRequestHandler
* Keep image extensions as-is, even when converting to WebP

= 1.4.21
* Fix settings checkboxes not initialized correctly on page load

= 1.4.2
* Update README

= 1.4.0
* Renamed plugin to Symmetria Smart Images

= 1.3.45
* Sync README, changelog and plugin version numbers.

= 1.3.44
* Use wp_json_encode() instead of json_encode() for better WP compatibility
* Remove flag LightnCandy NO_ESCAPE to make sure HTML is always escaped properly (exception for wsi_config JSON)

= 1.3.43
* Add domain info to admin config page
* Make sure all $_SERVER vars are sanitized properly
* Block direct access to some files, just in case

= 1.3.42
* Remove jQuery dep, not in use

= 1.3.41
* Fixed wp_enqueue_script_module() to comply with new WP
* Fixed error if config backup directory does not exist

= 1.3.40
 * Update plugin banner images

= 1.3.39
 * Fix api_url not passed to frontend correctly in some cases
 * Add phpcs ignores for false-positives

= 1.3.38
* Fix phpcs false-positive warnings about missing wp_unslash() calls etc.
* Remove dead code in Logger
* Add nonce per endpoint to all WP AJAX requests.

= 1.3.37
* Setup more reliable CI/CD pipeline with GitLab CI and Playwright tests

= 1.3.36
* Fixed admin redirection rules in .htaccess for multisite setups

= 1.3.34
* Fixed backup/restore on multisite configs

= 1.3.33
* Move from .ini config to .ini.php config to prevent direct access without using any .htaccess files
* Do not show admin notices outside Smart Images admin pages, unless automatic features are enabled

= 1.3.31
* Remove .htaccess file from private folder in favor of index.php file

= 1.3.30
* Fix tooltip attribute escaping

= 1.3.2
* Fix toast notifications not showing; missing container

= 1.3.1
* Make plugin WP repository ready
* Remove self-hosted update code for packaged version
* Fix phpcs linter issues

= 1.2.37
* Add basic-auth test. Otherwise htaccess test may give false positives if basic auth is not set.

= 1.2.36
* Fix image count in admin stats

= 1.2.35
* Do not run init hook with such high priority

= 1.2.34
* Stop Firefox auto-filling basic auth settings (even with autocomplete="off") 
* Fix WP Media Folders breaking if enqueuing scripts outside admin_enqueue_scripts

= 1.2.28
* Show admin notices in every admin page, not just plugin page
* Fix admin notices margin issue
* Indicate invalid/valid license key by changing input background

= 1.2.26
* Fix tooltip z-index issue
* Add more admin tooltips
* Move server and logging to advanced settings page

= 1.2.25
* Add tooltips for admin UI
* Various admin UI improvements
* Fixed some admin links

= 1.2.2
* Fix admin not initialized properly REST vs. admin view

= 1.2.2
* Implement WP REST API support and setting
* Remove dead code

= 1.2.1
* Fix bulk actions search not filtering invalid images by text

= 1.2.0
* Do not stop bulk processing on error
* Disable unsupported images in media library and bulk UI (svgs etc)
* Performance improvements

= 1.1.0
* New major release
