Make WordPress Core

Ticket #36345: 36345.patch

File 36345.patch, 678 bytes (added by jaspermdegroot, 9 years ago)
  • src/wp-includes/media.php

    diff --git src/wp-includes/media.php src/wp-includes/media.php
    index 9f35f79..b0378f1 100644
    function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac 
    10081008         * If src is an intermediate size GIF, the full size is excluded from srcset to keep a flattened GIF from becoming animated.
    10091009         */
    10101010        if ( ! isset( $image_sizes['thumbnail']['mime-type'] ) || 'image/gif' !== $image_sizes['thumbnail']['mime-type'] ) {
    1011                 $image_sizes['full'] = array(
     1011                $image_sizes[] = array(
    10121012                        'width'  => $image_meta['width'],
    10131013                        'height' => $image_meta['height'],
    10141014                        'file'   => $image_basename,