[wp-trac] [WordPress Trac] #34532: Responsive images: calculate the image baseurl from the original image `src`.

WordPress Trac noreply at wordpress.org
Mon Nov 2 15:37:34 UTC 2015


#34532: Responsive images: calculate the image baseurl from the original image
`src`.
--------------------------+--------------------
 Reporter:  azaozz        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by joemcgill):

 > So what happens if we generate a srcset that has some invalid URLs, and
 add it to an image?

 I think @aaroncampbell brings up a valid concern here. Without a way to
 respect any filters being placed on `wp_upload_dir()` it's possible that
 we could add invalid urls to the `srcset` attribute. The browser has no
 way of knowing if a source is valid or not during the selection process,
 which could result in broken images.

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


More information about the wp-trac mailing list