WordPress / performance

Performance plugin from the WordPress Performance Group, which is a collection of standalone performance modules.
https://wordpress.org/plugins/performance-lab/
GNU General Public License v2.0
352 stars 95 forks source link

Update auto sizes logic in Enhanced Responsive Images plugin to no longer load if already in Core #1531

Open felixarntz opened 1 week ago

felixarntz commented 1 week ago

Per the core code being merged in https://core.trac.wordpress.org/changeset/59008, we need to modify the Enhanced Responsive Images plugin to ensure the relevant logic is only loaded if not already available in Core, for compatibility with the upcoming 6.7 release.

Maybe a good way would be to check for existence of the wp_sizes_attribute_includes_valid_auto() function?

We still have some time to do that, but good to have an issue already. We could get started on this at any point prior to the WP 6.7 release.

felixarntz commented 1 week ago

cc @joemcgill @mukeshpanchal27

joemcgill commented 1 week ago

💥 I was just having this thought after committing https://core.trac.wordpress.org/changeset/59008. Thanks for opening this.