-
Notifications
You must be signed in to change notification settings - Fork 143
Update wp_calculate_image_sizes to Reflect Changes in sizes attribute #1381
Copy link
Copy link
Open
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
Description
Bug Description
As discussed in #1354 (review), the wp_calculate_image_sizes() function does not currently account for the changes made to the sizes attribute in PR #1329.
We need to update the sizes value in wp_calculate_image_sizes() so that any usage of this core function benefits from the improved sizes attribute.
Alternatively, we should ensure that the enhanced sizes attribute is applied via the wp_calculate_image_sizes filter, so any other code that directly calls wp_calculate_image_sizes() will also benefit from the optimizations.
Reactions are currently unavailable
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
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Definition ✏️