[wp-trac] [WordPress Trac] #37531: Plugin installation failure not reflected in the UI

WordPress Trac noreply at wordpress.org
Mon Aug 1 14:05:08 UTC 2016


#37531: Plugin installation failure not reflected in the UI
--------------------------+---------------------------------
 Reporter:  AronMS        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  4.6
Component:  Plugins       |     Version:  trunk
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui, administration
--------------------------+---------------------------------

Comment (by flixos90):

 This issue also affects the Theme Install screen. The problem is less
 likely to happen because WordPress assumes a theme is installed when
 seeing the directory of that name. To recreate the issue (without the
 patch of course): Go to the Theme Install screen, then create a directory
 that matches the slug of a theme, then back on the WordPress patch try to
 install - it will produce the exact same result. In
 [attachment:37531.3.diff] I adjusted `wp_ajax_install_theme()` to include
 the error code as well, similar as in `wp_ajax_install_plugin()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37531#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list