[wp-trac] [WordPress Trac] #34532: Responsive images: calculate the image baseurl from the original image `src`.
WordPress Trac
noreply at wordpress.org
Sat Oct 31 23:40:02 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 | Keywords:
Focuses: |
--------------------------+-------------------
There doesn't seem to be any cases where one image size is in one
location, and the rest of the sizes in another. In that case we can use
the original image `src` to calculate the URLs of the other sizes used in
`srcset`.
This will keep the same protocol and path as the image that was inserted
in the editor (in post_content) or returned from
`wp_get_attachment_image_src` in `wp_get_attachment_image()` (used for
galleries, etc.).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34532>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list