[wp-trac] [WordPress Trac] #34678: Responsive Images: Check if content images already have a sizes attribute

WordPress Trac noreply at wordpress.org
Fri Nov 13 22:02:07 UTC 2015


#34678: Responsive Images: Check if content images already have a sizes attribute
----------------------------+------------------------
 Reporter:  jaspermdegroot  |       Owner:  joemcgill
     Type:  defect (bug)    |      Status:  accepted
 Priority:  normal          |   Milestone:  4.4
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+------------------------

Comment (by jaspermdegroot):

 In 34678.diff:
 - `wp_image_add_srcset_and_sizes()`: Check if the image already has a
 `sizes` attribute before adding one
 - `wp_make_content_images_responsive()`: Make the `srcset` check work with
 both double and single quotes

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


More information about the wp-trac mailing list