Skip to content

Commit e75e011

Browse files
committed
chore(release): 4.2.2
##### [Version 4.2.2](v4.2.1...v4.2.2) (2026-03-25) - Added a static cache (Optml_Settings) to avoid repeated get_option calls within a single request, improving performance and consistency. - Fixed a potential PHP 8.2+ fatal error in get_svg_for by ensuring $sizes is always an array before destructuring (e.g. when images are missing or offloaded). Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution. - Improved optmlSrcsetDetector logic to prevent generating 1x DPR images larger than the original size, fixing incorrect srcset capping. Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution. - Fixed incorrect notice display when disabling the scaling option.
1 parent 7649ecf commit e75e011

6 files changed

Lines changed: 24 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
##### [Version 4.2.2](https://github.com/Codeinwp/optimole-wp/compare/v4.2.1...v4.2.2) (2026-03-25)
2+
3+
- Added a static cache (Optml_Settings) to avoid repeated get_option calls within a single request, improving performance and consistency.
4+
- Fixed a potential PHP 8.2+ fatal error in get_svg_for by ensuring $sizes is always an array before destructuring (e.g. when images are missing or offloaded). Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution.
5+
- Improved optmlSrcsetDetector logic to prevent generating 1x DPR images larger than the original size, fixing incorrect srcset capping. Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution.
6+
- Fixed incorrect notice display when disabling the scaling option.
7+
18
##### [Version 4.2.1](https://github.com/Codeinwp/optimole-wp/compare/v4.2.0...v4.2.1) (2026-01-09)
29

310
- Fixes invalid Optimole URLs being picked up for embed in the block editor

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization #
1+
# Optimole – Optimize Images in Real Time #
22
**Contributors:** [optimole](https://profiles.wordpress.org/optimole/)
33
**Tags:** image optimization, convert webp, image optimizer, lazy load, optimize images
44
**Requires at least:** 5.5
55
**Tested up to:** 6.9
66
**Requires PHP:** 7.4
7-
**Stable tag:** 4.2.1
7+
**Stable tag:** 4.2.2
88
**License:** GPLv3
99
**License URI:** https://www.gnu.org/licenses/gpl-3.0.en.html
1010

@@ -248,10 +248,12 @@ Discover how to make the most of Optimole with our detailed and user-friendly [d
248248

249249
## Changelog ##
250250

251-
##### [Version 4.2.1](https://github.com/Codeinwp/optimole-wp/compare/v4.2.0...v4.2.1) (2026-01-09)
251+
##### [Version 4.2.2](https://github.com/Codeinwp/optimole-wp/compare/v4.2.1...v4.2.2) (2026-03-25)
252252

253-
- Fixes invalid Optimole URLs being picked up for embed in the block editor
254-
- Fixes issue where getting the unoptimized image URL didnt account for directly uploaded images to the Optimole Dashboard
253+
- Added a static cache (Optml_Settings) to avoid repeated get_option calls within a single request, improving performance and consistency.
254+
- Fixed a potential PHP 8.2+ fatal error in get_svg_for by ensuring is always an array before destructuring (e.g. when images are missing or offloaded). Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution.
255+
- Improved optmlSrcsetDetector logic to prevent generating 1x DPR images larger than the original size, fixing incorrect srcset capping. Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution.
256+
- Fixed incorrect notice display when disabling the scaling option.
255257

256258

257259

optimole-wp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Image optimization service by Optimole
44
* Description: Complete handling of your website images.
5-
* Version: 4.2.1
5+
* Version: 4.2.2
66
* Author: Optimole
77
* Author URI: https://optimole.com
88
* License: GPL-2.0+
@@ -87,7 +87,7 @@ function optml() {
8787
}
8888
define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
8989
define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
90-
define( 'OPTML_VERSION', '4.2.1' );
90+
define( 'OPTML_VERSION', '4.2.2' );
9191
define( 'OPTML_NAMESPACE', 'optml' );
9292
define( 'OPTML_BASEFILE', __FILE__ );
9393
define( 'OPTML_PRODUCT_SLUG', basename( OPTML_PATH ) );

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "optimole-wp",
3-
"version": "4.2.1",
3+
"version": "4.2.2",
44
"description": "Cloud-based image optimization service - WordPress Integration",
55
"repository": {
66
"type": "git",

readme.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: image optimization, convert webp, image optimizer, lazy load, optimize ima
44
Requires at least: 5.5
55
Tested up to: 6.9
66
Requires PHP: 7.4
7-
Stable tag: 4.2.1
7+
Stable tag: 4.2.2
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
1010

@@ -248,10 +248,12 @@ Discover how to make the most of Optimole with our detailed and user-friendly [d
248248

249249
== Changelog ==
250250

251-
##### [Version 4.2.1](https://github.com/Codeinwp/optimole-wp/compare/v4.2.0...v4.2.1) (2026-01-09)
251+
##### [Version 4.2.2](https://github.com/Codeinwp/optimole-wp/compare/v4.2.1...v4.2.2) (2026-03-25)
252252

253-
- Fixes invalid Optimole URLs being picked up for embed in the block editor
254-
- Fixes issue where getting the unoptimized image URL didnt account for directly uploaded images to the Optimole Dashboard
253+
- Added a static cache (Optml_Settings) to avoid repeated get_option calls within a single request, improving performance and consistency.
254+
- Fixed a potential PHP 8.2+ fatal error in get_svg_for by ensuring is always an array before destructuring (e.g. when images are missing or offloaded). Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution.
255+
- Improved optmlSrcsetDetector logic to prevent generating 1x DPR images larger than the original size, fixing incorrect srcset capping. Props to [[@fuleinist](https://github.com/fuleinist)](https://github.com/fuleinist) for the contribution.
256+
- Fixed incorrect notice display when disabling the scaling option.
255257

256258

257259

0 commit comments

Comments
 (0)