[wp-trac] [WordPress Trac] #35102: Responsive images support for external URLs
WordPress Trac
noreply at wordpress.org
Tue Dec 15 17:24:33 UTC 2015
#35102: Responsive images support for external URLs
-------------------------------------+------------------------
Reporter: polevaultweb | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.4.1
Component: Media | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------
Comment (by joemcgill):
After a brief Slack chat with @polevaultweb it seems like this use case is
something that should be handled by the plugin itself, but after r35821,
the `wp_calculate_image_srcset` filter is no longer reachable because we
bail early if the `src` doesn't match one of the available sizes in the
attachment meta.
@polevaultweb I wonder if a workaround would be to filter
`wp_get_attachment_metadata` to insert your offloaded files so
`wp_image_add_srcset_and_sizes()` can find the corresponding image sizes?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35102#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list