Reject invalid theme.zip uploads
|Reported by:||jstrebel||Owned by:||dd32|
When a user uploads (/wp-admin/theme-install.php) a theme.zip file from their desktop that may have an invalid folder structure WP accepts the upload. The theme does not appear in the /wp-admin/themes.php list of available themes so the user assumes it was not taken and they try the upload again and are met with a cryptic "Folder already exists" message.
Perhaps WP could validate the internal file/folder structure of the theme.zip and reject the upload with a clearer message such as: "This theme does not comply with the standard WP folder structure for themes. Please see this topic <link to topic> that explains the proper standard. Note: Please alert the theme author to modify their theme.zip download to comply"
Change History (34)
- Keywords has-patch needs-testing added; needs-patch removed
- Milestone changed from Future Release to 3.3
- Owner set to dd32
- Status changed from new to accepted
comment:19 follow-up: ↓ 20 @nacin — 4 years ago
- Keywords ui-feedback added; has-patch needs-testing removed