[wp-trac] [WordPress Trac] #34807: Image tags without ending slash are never made responsive.

WordPress Trac noreply at wordpress.org
Sat Nov 28 03:14:09 UTC 2015


#34807: Image tags without ending slash are never made responsive.
--------------------------+--------------------------
 Reporter:  programmin    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+--------------------------
Changes (by azaozz):

 * component:  General => Media
 * milestone:  Awaiting Review => 4.4


Comment:

 Confirmed. The bug is in get_media_embedded_in_content(). Why do we use
 that (buggy) function with longer regex for images anyway? If I remember
 right we had better and twice as fast regex specifically for images.

 Using get_media_embedded_in_content() also has an unexpected/unintended
 side effect: `img` can be removed from the whitelist by using the
 `media_embedded_in_content_allowed_types` filter. That will of course
 prevent matching of any images.

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


More information about the wp-trac mailing list