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. Built from https://develop.svn.wordpress.org/trunk@37986 git-svn-id: http://core.svn.wordpress.org/trunk@37927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
130 KiB
130 KiB