[wp-trac] [WordPress Trac] #34898: Responsive images broken on edited/imported content

WordPress Trac noreply at wordpress.org
Mon Dec 7 20:07:39 UTC 2015


#34898: Responsive images broken on edited/imported content
-----------------------------+---------------------------
 Reporter:  kovshenin        |       Owner:  mikeschroder
     Type:  defect (bug)     |      Status:  closed
 Priority:  highest omg bbq  |   Milestone:  4.4
Component:  Media            |     Version:  trunk
 Severity:  blocker          |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+---------------------------
Changes (by mikeschroder):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35820"]:
 {{{
 #!CommitTicketReference repository="" revision="35820"
 Media: Don't generate responsive image attributes if `src` does not match
 ID in `wp-image-` class.

 We rely on the `wp-image-` class to quickly find an attachment ID to add
 responsive image attributes.
 To avoid incorrect images being displayed, do not add these attributes if
 the `src` does not match the
 meta from the attachment ID in the class.

 Props azaozz, kovshenin, joemcgill.
 Fixes: #34898.
 }}}

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


More information about the wp-trac mailing list