-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
[Plugin] Enhanced Responsive ImagesIssues for the Enhanced Responsive Images plugin (formerly Auto Sizes)Issues for the Enhanced Responsive Images plugin (formerly Auto Sizes)[Type] BugAn existing feature is brokenAn existing feature is broken
Milestone
Description
Bug Description
WordPress core has a mechanism to disable responsive images through some filters.
add_filter( 'wp_calculate_image_srcset', '__return_empty_array' );
add_filter( 'wp_calculate_image_sizes', '__return_false' );
If we disable responsive images, the Enhance Responsive Image plugin still adds the sizes and srcset values. We should fix this.
Steps to reproduce
- Add
add_filter( 'wp_calculate_image_sizes', '__return_false' )
in your functions.php - Add image through Image block
- See image markup.
Screenshots
Metadata
Metadata
Assignees
Labels
[Plugin] Enhanced Responsive ImagesIssues for the Enhanced Responsive Images plugin (formerly Auto Sizes)Issues for the Enhanced Responsive Images plugin (formerly Auto Sizes)[Type] BugAn existing feature is brokenAn existing feature is broken
Type
Projects
Status
Done 😃