[wp-trac] [WordPress Trac] #62312: wp_image_src_get_dimensions() - Warning for SVG with postmeta height and width empty

WordPress Trac noreply at wordpress.org
Mon Oct 28 16:04:43 UTC 2024


#62312: wp_image_src_get_dimensions() - Warning for SVG with postmeta height and
width empty
--------------------------+-----------------------------
 Reporter:  apermo        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  5.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 As @donbowman pointed out originally in
 https://core.trac.wordpress.org/ticket/57813#comment:2
 `wp_image_src_get_dimensions()` will throw a warning and have potentially
 broken results when used with an SVG.

 After a short conversation with @soean, he followed my suggestion to split
 this topic up into an individual ticket, since this one is frontend
 related, the other is not.

 I will prepare a PR on github, following @donbowman's initial findings.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62312>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list