Skip to content

On PHP 8.2 this loop only had the last used image style in the $style_set...

Adjusted the find styles part, if I used a core 10.2 responsive image the original loop only yielded the last image_style and I needed all off them for the sources replacement loop.

Added an extra loop that checks if $variables['sources'] is set, then replaced all the srcset attributes with the newly created context aware URI. This loop can handle responsive sources that have multiple URI set.

Closes #3420451

Merge request reports