[wp-trac] [WordPress Trac] #36822: srcset is added to <img /> even if media file is not present in media library

WordPress Trac noreply at wordpress.org
Thu Jul 14 13:40:16 UTC 2016


#36822: srcset is added to <img /> even if media file is not present in media
library
-------------------------------------------------+-------------------------
 Reporter:  temmokan                             |       Owner:  joemcgill
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  4.6
Component:  Media                                |     Version:  4.4.1
 Severity:  normal                               |  Resolution:
 Keywords:  responsive has-patch needs-unit-     |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by A5hleyRich):

 I have to agree with @azaozz, this seems very edge case.

 @temmokan we can't assume that the file path will follow the same format.
 For example, it's common for CDNs to add an object prefix, resulting in
 paths like so:

 `wp-content/uploads/2016/07/14140907/image.jpeg`

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


More information about the wp-trac mailing list