= 1.4.24 =
* Test compatibility with WordPress 6.6
* Replace deprecated function mb_convert_encoding

= 1.4.23 =
* Test compatibility with WordPress 6.4
* Improve error logging
* Fix compatibility with WP Offload Media
* Fix webp loading when using with WP Offload Media
* Fix bugs during the async upload
* Upgrade wp-background-processing library

= 1.4.22 =
* Test compatibility with WordPress 6.3
* Update plugin resources

= 1.4.21 =
* Fix issue related to file name encodings which prevented to correctly optimize that used special characters in file name

= 1.4.20 =
* Added option to delete attachment metadata via Settings > MegaOptim > Advanced if WP_DEBUG is enabled.
* Added additional safeguarding of the original images if invalid/corrupt image is received through the API.
* Fix 'Custom folders' optimizer issue, not finding files with all uppercase.
* Fix 'Custom Folders' optimizer issue, not correctly transforming local to public path in some hosting environments.

* Fix various warnings related to PHP8.1

= 1.4.19 =
* Added PHP 8.1 support
* Tested with WordPress 5.9

= 1.4.18 =
* Removed the cURL API calls and rewrote it to use the WordPress HTTP API instead
* Fixed various bugs in the HTTP client making the plugin behave creepy in some environments.
* Fixed end(explode()) call that triggered error. We should pass variables only here.
* Added various codebase and PHP 8.1 improvements

= 1.4.17 =
- Fix PHP warnings related to the WebP features

= 1.4.16 =
- Fix url encoding for attachments that contain weird characters

= 1.4.15 =
- Fix problem related to the the constants definitions loading
- Fix url validation problem causing bulk optimizer to hang
- Fix conflict with File Manager plugins that use elfinder library
- Fix WordFence false-positive related to php_uname()
- Update api timeouts to prevent ui blocking if megaoptim api is down
- Improved bulk optimizer. Add better error handling.

= 1.4.14 =
- Added UI sidebar for links and other information
- Added free tokens promo link
- Added various responsive UI fixes
- Fixed problem with CLI. Allow up to 10 consecutive errors before terminating bulk upload.

= 1.4.13 =
- Terminate the WP CLI Bulk process only if API problem is found e.g. Insufficuent tokens.

= 1.4.12 =
- Performance optimizations in /wp-admin
- Performance optimizations in the Bulk optimization process through the admin UI
- Imrpoved WP CLI Bulk optimizer. If there is an error like "No tokens left", terminate the process completely
- Removed confirm dialog when refreshing optimizer page for insufficient tokens

= 1.4.11 =
- Fix error triggered when activating the plugin

= 1.4.10 =
- Add compatibility with PHP 8
- Add compatibility with WordPress 5.6
- Speed improvements to the 'Custom Folders' module
- Fix fatal error in some occuasions when generating debug report.
- Fix forever loading when "Optimize" button is pressed in Media Library list table screen in certain cases
- Fix file naming problem when '#' is present in file names
- Ignore wp-content/uploads from 'Custom Folders' scan

= 1.4.9 =
- Fix broken WebP images when both file.png.webp and file.webp exists on the server
- Improved WebP settings UI/UX
- Tested on WordPress 5.4

= 1.4.8 =
- Added chunked Media Library scanning for large media libraries to prevent memory exhaustion and timeouts
- Added error reporting for cases when there is fatal error during bulk optimization caused by third party. eg: plugin updates, etc.
- Improved Bulk Optimizer counters
- Improved WPCLI Bulk Optimizer command
- Improved Bulk Folder/File Optimizer
- Improved Bulk Media Library Optimizer
- Improved Bulk NextGen Library Optimizer
- Improved UI out-of-tokens signalization
- Fixed notice title conflicts
- Fixed several typos

= 1.4.7 =
- Fix WebP php warning

= 1.4.6 =
- Added scan filters
- Improved Bulk Optimizer UI (Added confirmation on exit and Cancel button)
- Improved WebP/WP Media Offload support: Detect if WebP image exist on the remote s3 bucket use it in the final markup
- Improved WebP/WP Media Offload support: Added support for installs that use CNAME to mask the s3 bucket url.
- Improved readme

= 1.4.5 =
- Added compatibility for WP 5.3 "BIG Image" threshold. If Auto-Optimize is enabled AND Max Width/Height are set in the options, disable the "BIG Image" treshold
- Fix the auto resize width/height option (was not working correctly)
- Improved Media library table rendering
- Improved logging function. Automatically remove log files bigger than 10 MB

= 1.4.4 =
- Added WP Offload Media (Lite/Pro) support
- Improved WebP support

= 1.4.3 =
- Added file/directory support to `wp megaoptim optimize` command. You can now optimize files and folders by specifying path.
- Improved file optimizer
- Improved UI

= 1.4.2 =
- Compatibility with WordPress 5.3
- Improved image URL validation functionality
- Improved public site detection functionality.

= 1.4.1 =

- Added support for l18n standard
- Added notice to suggest to the user to switch to list mode in the Media Library screen
- Improved the welcome instructions screen
- Updated usage message for wp megaoptim restore command to match the command
- Refactored ajax security checks and added some more security hardening (thanks pluginvulnerabilities for the suggestions)
- Added improved error reporting in the Media Library list mode

= 1.4.0 =
- Added WP CLI command for optimizing images eg. `wp megaoptim optimize <ID> [--force] [--level=<option>]`
- Added WP CLI command for restoring images eg. `wp megaoptim restore <IDorAll>`
- Added WP CLI command for setting api key. eg. `wp megaoptim set_api_key <api_key>`
- Added WP CLI command for querying api tokens eg. `wp megaoptim info`
- Security Improvements

= 1.3.2 =
- Add detection to skip corrupted/unoptimized files in some unique cases of environments
- Force HTTP 1.1 for now because of problems with some web servers.

= 1.3.1 =
- Fix svn problem

= 1.3.0 =
- Added Support for the Unlimited plan
- Added Support for sub accounts
- Revamped media library optimizer
- Revamped nextgen library optimizer
- Revamped retina support & WP Retina @2x integration
- Improved optimization speed by at least 50%
- Improved WebP support
- Improved Settings pages
- Improved WPEngine compatibility
- Fixed Cloudflare purge compatibility
- Fixed problem when auto-optimizing nextgen gallery images
- Improved stats display when optimizing single attachment in Media Library table
- Added detection for the child theme folder in 'Local Folders' optimizer
- Fixed several typos

= 1.2.1 =
- Improved Admin pages
- Improved WebP support

= 1.2.0 =
* Added WebP Support
* Removed MegaOptim from main menu and added the settings part in "Settings" and the optimizer in "Media" tabs.
* Improved settings data persistence
* Improved security
* Improved Admin UI
* Fixed PHP Strict Standards warning
* Fixed saving max dimensions value
* Revamped database upgrade process

= 1.1.5 =
* Improved WP Retina 2x compatibility

= 1.1.4 =
* Fix error triggered on media table and media edit screen in the MegaOptim column/metabox when attachment is not image.

= 1.1.3 =
* Updated MegaOptim php library
* Fix problems with non-ascii parts in the urls

= 1.1.2 =
* Security hardening
* WordPress 5.1+ compatibility
* Fix undefined variable problem on 'Custom folders' screen
* Fix non-unique html ids for thumbnail size checkboxes

= 1.1.1 =
* Fixed error warnings

= 1.1.0 =
* Added feature to sign up for api key from the WordPress Dashboard
* Improved UI & added scan library button
* Improved instructions
* Removed the unnecessary database queries for faster bulk processing
* Removed the unnecessary megaoptim API calls for faster bulk processing
* Removed unnecessary code leftovers
* Fixed nextgen gallery sql query used to find all unoptimized images
* Improved compatibility with PHP5.3 and onwards

= 1.0.4 =
* Don't stop the bulk process when image is missing on the server, continue to next instead.
* Added the WP version in the useragent header when sending request to the api server
* Corrected info message in the Media List Table and the Media Edit Metabox.

= 1.0.3 =
* Imrpoved settings instructions
* Removed tag folder from the plugin directory.

= 1.0.2 =
* Fix error when editing post
* Improved Welcome instructions
* Improved API Key form

= 1.0.1 =
* Added megaoptim_after_restore_attachment action hook (Called after attachment is restored.)
* Improved readme and fixed typos

= 1.0.0 =
* Initial release
