Make WordPress Core

Ticket #35043: 35043.patch

File 35043.patch, 513 bytes (added by SergeyBiryukov, 8 years ago)
  • src/wp-includes/media.php

     
    12061206 * @return string Converted content with 'srcset' and 'sizes' attributes added to images.
    12071207 */
    12081208function wp_make_content_images_responsive( $content ) {
     1209        if ( is_feed() ) {
     1210                return $content;
     1211        }
     1212
    12091213        if ( ! preg_match_all( '/<img [^>]+>/', $content, $matches ) ) {
    12101214                return $content;
    12111215        }