[wp-trac] [WordPress Trac] #37141: SVG image used as featured images set to 0px by 0px

WordPress Trac noreply at wordpress.org
Tue Jun 21 19:37:47 UTC 2016


#37141: SVG image used as featured images set to 0px by 0px
--------------------------+-----------------------------
 Reporter:  theMikeD      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.5.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is a follow-up to #26256.

 What I see when an SVG is used as a featured image is this:


 {{{

 <a href="http://insights.dev/wordpress/wp-admin/media-
 upload.php?post_id=13&type=image&TB_iframe=1" id="set-post-
 thumbnail" aria-describedby="set-post-thumbnail-desc" class="thickbox">
 <img width="1" height="1" src="http://insights.dev/wp-
 content/uploads/2015/06/Gen.Demo_Icon-01.svg" class="attachment-266x266
 size-266x266" alt="Gen.Demo_Icon-01">
 </a>

 }}}


 Selecting the img tag in chrome inspector shows width and height as 0px,
 actual value auto.

 If I set a width manually on the <a> tag, I see the svg just fine

 twentyfifteen theme, no plugins active.

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


More information about the wp-trac mailing list