[wp-trac] [WordPress Trac] #32854: Uploading a theme via zip file not working if style.css and index.php are in a subdirectory
WordPress Trac
noreply at wordpress.org
Wed Jul 1 10:22:42 UTC 2015
#32854: Uploading a theme via zip file not working if style.css and index.php are
in a subdirectory
--------------------------+-----------------------------
Reporter: onishiweb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Since 3.4 WordPress themes have been able to use subdirectories for
templates (https://nacin.com/2012/03/29/page-templates-in-subdirectories-
new-in-wordpress-3-4/) and it's working great. We have a theme
architecture now that organises all files out of the root into
subdirectories, it works fine when the theme is installed via uploading
into the `/themes` directory but not when it's attempted to be uploaded
via zip as the installer is only looking for `style.css` and `index.php`
in the theme root.
Steps to reproduce:
- Download the zip file of https://github.com/dxw/govsite
- Navigate to Appearance > Themes
- Select add new > Upload via Zip
This is slightly related to #24814 which is marked 'won't fix' but has
since been changed so would be good for the uploader script to mirror this
behaviour as they are now valid themes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32854>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list