[wp-trac] [WordPress Trac] #61436: 'src' not in $attr for wp_get_loading_optimization_attributes
WordPress Trac
noreply at wordpress.org
Fri Jun 14 19:10:02 UTC 2024
#61436: 'src' not in $attr for wp_get_loading_optimization_attributes
-------------------------------+--------------------------------
Reporter: prestonwordsworth | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: 6.4
Severity: normal | Resolution:
Keywords: | Focuses: docs, performance
-------------------------------+--------------------------------
Changes (by joemcgill):
* version: 6.5.4 => 6.4
* milestone: Awaiting Review => Future Release
Comment:
Hi @prestonwordsworth, welcome to Trac!
The main place where attributes are set up for this filter are in
`wp_img_tag_add_loading_optimization_attrs()`, which does not pass the
`src` nor the actual image to `wp_get_loading_optimization_attributes()`
where the filter is called. There are other places where the `src` is
passed, like in `get_header_image_tag()` or
`WP_Widget_Media_Image::render_media`, but it probably makes sense to make
this consistent.
Thanks for the report!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61436#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list