WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37531, comment 8


Ignore:
Timestamp:
08/01/2016 02:07:30 PM (3 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37531, comment 8

    initial v1  
    1 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()`.
     1This 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 screen 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()`.