mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 13:14:29 +00:00
73cd1b3f8fc64b17e0ed6025c0eebb2a98dda2dc
wp_calculate_image_srcset().
In `wp_calculate_image_srcset()` we get an array of image sizes associated with an attachment and then add the original image's information to the array before processing the `srcset`. In doing so, we set the original data to a `$image_sizes['full']` key, which could stomp on any custom image sizes using `full` as a size name. This avoid the issues by adding the original data without a named key, which is never referenced anyway. Props jaspermdegroot. Fixes #36345. git-svn-id: https://develop.svn.wordpress.org/trunk@37986 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%