Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow withResponsiveImages to be conditionally set #3742

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

aSeriousDeveloper
Copy link
Contributor

Partial recreation of #2160, this was closed 4 years ago for inactivity.

Allow withResponsiveImages() to accept false values, while still maintaining backwards compatibility with current usage of the function.

A test has been included to make sure that the value is working as expected.

This is mostly for cases where withResponsiveImages was set by an external package (for example, some Media Library plugins) and you want to set it back to false.

This is to reset the value if it was previously set true, for instance in an additional media library package.
@freekmurze freekmurze merged commit e041e39 into spatie:main Dec 9, 2024
1 check passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants