[wp-trac] [WordPress Trac] #35043: Images in RSS feed are broken

WordPress Trac noreply at wordpress.org
Mon Dec 14 03:21:26 UTC 2015


#35043: Images in RSS feed are broken
--------------------------+------------------------
 Reporter:  griffinjay    |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.4.1
Component:  Media         |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by joemcgill):

 * owner:   => joemcgill
 * status:  new => reviewing


Comment:

 Thanks for opening a new ticket @griffinjay. Since the markup in the RSS
 feed is technically valid, I'm curious to know more about what exactly is
 breaking with your MailChimp emails. Could you share a URL to a broken
 email or a screenshot of what you're seeing on your end?

 The code that I had shared on #34945 to manually turn off responsive
 images in your feeds was meant to be copied into your theme's
 functions.php file. I'm adding it again here for reference:


 {{{
 function no_responsive_image_feeds() {
     add_filter( 'max_srcset_image_width', function() {
        return 1;
     } );
 }

 add_action('rss2_head', 'no_responsive_image_feeds' );
 add_action('atom_head', 'no_responsive_image_feeds' );
 add_action('rss_head', 'no_responsive_image_feeds' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35043#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list