[wp-trac] [WordPress Trac] #57239: Notice undefined array keys width and height when using full svg image
WordPress Trac
noreply at wordpress.org
Mon Sep 30 23:22:42 UTC 2024
#57239: Notice undefined array keys width and height when using full svg image
--------------------------+------------------------------
Reporter: joeyjanson | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 6.1.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):
* keywords: has-patch needs-design-feedback => has-patch
Old description:
> If you add media like an svg and use it with the "full size" option the
> width and height are not fetched. Currently the function (wp-
> includes/media.php line 1185) expects those array keys.
New description:
If you add media like an svg and use it with the "full size" option the
width and height are not fetched. Currently the
`_wp_get_image_size_from_meta()` function
([https://core.trac.wordpress.org/browser/tags/6.1/src/wp-
includes/media.php#L1185 wp-includes/media.php line 1185]) expects those
array keys.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57239#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list