[wp-trac] [WordPress Trac] #63714: Missing width/height attributes on SVG file since WP 6.8.2
WordPress Trac
noreply at wordpress.org
Thu Jul 17 10:27:31 UTC 2025
#63714: Missing width/height attributes on SVG file since WP 6.8.2
--------------------------+---------------------
Reporter: rainbowgeek | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.8.3
Component: Media | Version: 6.8.2
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by rollybueno):
First look, I don't think `$attr` supports 'height' & 'width' as per
https://developer.wordpress.org/reference/functions/wp_get_attachment_image/
Though the doc could be outdated.. will try to reproduce later.
Replying to [comment:1 rainbowgeek]:
> Code used:
>
>
> {{{
> wp_get_attachment_image($image, $size, '', array('class' => 'mb-4',
'height' => 60, 'width' => 60));
> }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63714#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list