[wp-trac] [WordPress Trac] #60354: Image filter functions strip query string from image src
WordPress Trac
noreply at wordpress.org
Wed Apr 3 15:40:34 UTC 2024
#60354: Image filter functions strip query string from image src
-------------------------------+------------------------------
Reporter: sanchothefat | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by antpb):
* keywords: => reporter-feedback
Comment:
Hi @sanchothefat! This ticket came up in a recent Media Meeting and there
was question around where the filter you would suggest would go and
when/where it would make the data available. At the time of the lines
shared it is parsing markup not the url of the image. If you know of a
place that this would be better exposed that isn't available already, I
think more folks would be open to a suggested filter.
In current state I'm a bit unsure how to move this forward in the
`wp_image_add_srcset_and_sizes` and `wp_img_tag_add_width_and_height_attr`
functions because we are parsing the html to get the data. It wouldnt be
the right place to pull a url and make it filterable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60354#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list