Skip to content

v4.2.2

Choose a tag to compare

@pirate-bot pirate-bot released this 25 Mar 10:52
· 208 commits to master since this release
Version 4.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) 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) for the contribution.
  • Fixed incorrect notice display when disabling the scaling option.