Skip to content

Update wp_calculate_image_sizes to Reflect Changes in sizes attribute #1381

@mukeshpanchal27

Description

@mukeshpanchal27

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.

Metadata

Metadata

Labels

[Plugin] Enhanced Responsive ImagesIssues for the Enhanced Responsive Images plugin (formerly Auto Sizes)[Type] BugAn existing feature is broken

Type

No type

Projects

Status

Definition ✏️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions