With 10.2 image styles might get wrongly flushed

Created on 10 April 2024, 7 months ago
Updated 13 May 2024, 6 months ago

Problem

Drupal 10.2 introduced a new optional $path parameter in hook_image_style_flush(). Now the hook is invoked when the image style of an individual file is removed, with a $path being set. Since image_effects module ignores the $path, image styles may get generally flushed by https://git.drupalcode.org/project/image_effects/-/blob/8.x-3.x/image_ef....

this was discovered as part of 🐛 Uploading a file to media library flushes theme registry Active

Proposed resolution

Add support for the optional $path variable. If it's there, pass it trough to the "child image styles".

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇦🇹Austria fago Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024