🔞 ADULT: Changeset/ - Complete Album!

Changeset 3335876


Ignore:
Timestamp:
07/29/2025 11:06:47 AM (5 months ago)
Author:
petredobrescu
Message:

Version 6.2.2

🧠 The Smart Media Update

Release Date: July 29, 2025

⚙️ Improvements

  • Enhanced REST API Support: Two new parameters added to the WordPress REST API for media items — source_url_webp and source_url_avif — making it easier to access next-gen image formats programmatically.
  • Media Library Filter: Introduced a new filter to hide the ShortPixel box from specific areas in the Media Library — perfect for a cleaner UI when needed.

🛠️ Fixes

  • 404 Page Styling: Fixed an issue where CSS was broken on 404 pages when CDN delivery was enabled.
  • Large PNG Restore Fix: Resolved errors that occurred when restoring backups of large PNGs with scaled versions generated by WordPress.
  • Improved CDN Replacement: Images using data-srcset are now correctly replaced with CDN links when delivery is enabled.
  • SmartCropping Upload Issue: Fixed a bug where SmartCropping didn’t work correctly when automatic optimization on upload was turned off.
  • Queue Stability: Added a safeguard for rare cases involving old items in the processing queue that could trigger errors.

Update now for better REST API support, improved CDN handling, and a smoother media optimization experience! 🚀

Location:
shortpixel-image-optimiser
Files:
32 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shortpixel-image-optimiser/tags/6.2.2/class/Controller/AdminController.php

    r3289850 r3335876  
    302302    }
    303303
     304    public function checkRestMedia($result, $server, $request )
     305    {
     306      $data = $result->data;
     307      if (! is_array($data) || ! isset($data['type']) || $data['type'] !== 'attachment') // check if for us.
     308      {
     309         return $result;
     310      }
     311
     312      $attach_id = $data['id'];
     313