[wp-trac] [WordPress Trac] #63714: Missing width/height attributes on SVG file since WP 6.8.2
WordPress Trac
noreply at wordpress.org
Fri Aug 15 19:09:52 UTC 2025
#63714: Missing width/height attributes on SVG file since WP 6.8.2
---------------------------------------------+-----------------------------
Reporter: rainbowgeek | Owner:
| adamsilverstein
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8.3
Component: Media | Version: 6.8.2
Severity: major | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"60641" 60641]:
{{{
#!CommitTicketReference repository="" revision="60641"
Media: ensure `wp_get_attachment_image` uses valid user-provided width and
height.
Fix a bug introduced in WordPress 6.8.2 (r60415) that led to user supplied
values for width and height in the $attr array passed to
`wp_get_attachment_image` to be overwritten.
Props rainbowgeek, ocean90, rollybueno, shreya0shrivastava, heybran,
mukesh27.
Fixes #63714.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63714#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list