[wp-trac] [WordPress Trac] #35045: Responsive images not added when effective scheme differs from image src scheme
WordPress Trac
noreply at wordpress.org
Sun Dec 13 02:40:14 UTC 2015
#35045: Responsive images not added when effective scheme differs from image src
scheme
--------------------------+-----------------------------
Reporter: webaware | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
`wp_image_add_srcset_and_sizes()` checks for base URL matches between
available files and the src URL from the image tag in content. When the
protocol scheme is different, the base URL doesn't match the src URL and
no responsive images are added.
This can occur in such circumstances as:
* image added with protocol `http:` and page viewed with protocol `https:`
* image added with protocol `https:` and page viewed with protocol `http:`
* image added with no protocol (i.e. protocol-relative URL) and page
viewed with either protocol `http:` or `https:`
* `upload_dir` filter changes baseurl to `https:` to prevent insecure
content
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35045>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list