[wp-trac] [WordPress Trac] #42338: Blank page on plugin-install.php

WordPress Trac noreply at wordpress.org
Wed Oct 25 18:33:49 UTC 2017


#42338: Blank page on plugin-install.php
------------------------------+-----------------------------
 Reporter:  theyrobburnfield  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Plugins           |    Version:  4.8.2
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I'm running into an issue on /wp-admin/plugin-install.php where the page
 is just blank.
 After some investigating it would appear the issue is related to the
 plugin icon being an svg.

 When I use inspector to replace the svg with a png or jpg instead the page
 properly loads everything.  But put a png in there and everything goes
 blank.  Noticed the svg was being loaded by the popular Jetpack plugin and
 so my install plugins page is blank.

 See code line 537 of the file /wp-admin/includes/class-wp-plugin-install-
 list-table.php for where the image is output.

 I'm guessing the reason for the issue is that svg don't have a normal
 calculated height/width and so the container is just expanding way outside
 of the image container itself.  Maybe try wrapping the img tag in a div
 and setting the width and height on that container as well to keep the
 image from bleeding outside if it is an svg.

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


More information about the wp-trac mailing list